mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Add babel to build chain and linter
Enables fancy Javascript language features like optional chaining, for developer happiness.
This commit is contained in:
parent
9f0273aa44
commit
57545f66d2
4 changed files with 570 additions and 403 deletions
5
.babelrc
Normal file
5
.babelrc
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"presets": [
|
||||||
|
"@babel/preset-stage-3"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
@ -11,6 +11,7 @@
|
||||||
"browser": true,
|
"browser": true,
|
||||||
"meteor": true
|
"meteor": true
|
||||||
},
|
},
|
||||||
|
"parser": "babel-eslint",
|
||||||
"parserOptions": {
|
"parserOptions": {
|
||||||
"ecmaVersion": 2018,
|
"ecmaVersion": 2018,
|
||||||
"sourceType": "module"
|
"sourceType": "module"
|
||||||
|
|
|
||||||
965
package-lock.json
generated
965
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -40,6 +40,7 @@
|
||||||
},
|
},
|
||||||
"homepage": "https://wekan.github.io",
|
"homepage": "https://wekan.github.io",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"babel-eslint": "^10.1.0",
|
||||||
"eslint": "^5.16.0",
|
"eslint": "^5.16.0",
|
||||||
"eslint-config-meteor": "0.0.9",
|
"eslint-config-meteor": "0.0.9",
|
||||||
"eslint-config-prettier": "^3.6.0",
|
"eslint-config-prettier": "^3.6.0",
|
||||||
|
|
@ -53,6 +54,7 @@
|
||||||
"prettier-eslint": "^9.0.1"
|
"prettier-eslint": "^9.0.1"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@babel/core": "^7.9.0",
|
||||||
"@babel/runtime": "^7.9.2",
|
"@babel/runtime": "^7.9.2",
|
||||||
"ajv": "^5.0.0",
|
"ajv": "^5.0.0",
|
||||||
"babel-runtime": "^6.26.0",
|
"babel-runtime": "^6.26.0",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue