Răsfoiți Sursa

Add babel to build chain and linter

Enables fancy Javascript language features like optional chaining,
for developer happiness.
boeserwolf 5 ani în urmă
părinte
comite
57545f66d2
4 a modificat fișierele cu 406 adăugiri și 264 ștergeri
  1. 5 0
      .babelrc
  2. 1 0
      .eslintrc.json
  3. 398 264
      package-lock.json
  4. 2 0
      package.json

+ 5 - 0
.babelrc

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

+ 1 - 0
.eslintrc.json

@@ -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"

Fișier diff suprimat deoarece este prea mare
+ 398 - 264
package-lock.json


+ 2 - 0
package.json

@@ -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",

Unele fișiere nu au fost afișate deoarece prea multe fișiere au fost modificate în acest diff