Add babel to build chain and linter

Enables fancy Javascript language features like optional chaining,
for developer happiness.
This commit is contained in:
boeserwolf 2020-04-22 13:50:47 +02:00
parent 9f0273aa44
commit 57545f66d2
4 changed files with 570 additions and 403 deletions

5
.babelrc Normal file
View file

@ -0,0 +1,5 @@
{
"presets": [
"@babel/preset-stage-3"
]
}

View file

@ -11,6 +11,7 @@
"browser": true,
"meteor": true
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"

965
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -40,6 +40,7 @@
},
"homepage": "https://wekan.github.io",
"devDependencies": {
"babel-eslint": "^10.1.0",
"eslint": "^5.16.0",
"eslint-config-meteor": "0.0.9",
"eslint-config-prettier": "^3.6.0",
@ -53,6 +54,7 @@
"prettier-eslint": "^9.0.1"
},
"dependencies": {
"@babel/core": "^7.9.0",
"@babel/runtime": "^7.9.2",
"ajv": "^5.0.0",
"babel-runtime": "^6.26.0",