Преглед изворни кода

Add babel to build chain and linter

Enables fancy Javascript language features like optional chaining,
for developer happiness.
boeserwolf пре 5 година
родитељ
комит
57545f66d2
4 измењених фајлова са 406 додато и 264 уклоњено
  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,
     "meteor": true
   },
+  "parser": "babel-eslint",
   "parserOptions": {
     "ecmaVersion": 2018,
     "sourceType": "module"

Разлика између датотеке није приказан због своје велике величине
+ 398 - 264
package-lock.json


+ 2 - 0
package.json

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

Неке датотеке нису приказане због велике количине промена