mirror of
https://github.com/maputnik/editor.git
synced 2026-02-12 23:50:03 +00:00
Use babel as parser for eslint
This commit is contained in:
@@ -8,3 +8,4 @@ install:
|
||||
- npm install
|
||||
script:
|
||||
- npm run build
|
||||
- npm run lint
|
||||
|
||||
12
package.json
12
package.json
@@ -47,6 +47,9 @@
|
||||
"esversion": 6
|
||||
},
|
||||
"eslintConfig": {
|
||||
"plugins": [
|
||||
"react"
|
||||
],
|
||||
"extend": [
|
||||
"plugin:react/recommended"
|
||||
],
|
||||
@@ -55,6 +58,7 @@
|
||||
"node": true,
|
||||
"es6": true
|
||||
},
|
||||
"parser": "babel-eslint",
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 6,
|
||||
"sourceType": "module",
|
||||
@@ -63,13 +67,11 @@
|
||||
"experimentalObjectRestSpread": true,
|
||||
"jsx": true
|
||||
}
|
||||
},
|
||||
"plugins": [
|
||||
"react"
|
||||
]
|
||||
}
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel-core": "6.14.0",
|
||||
"babel-eslint": "^6.1.2",
|
||||
"babel-loader": "6.2.4",
|
||||
"babel-plugin-transform-class-properties": "^6.11.5",
|
||||
"babel-plugin-transform-decorators-legacy": "^1.3.4",
|
||||
@@ -79,7 +81,7 @@
|
||||
"babel-preset-react": "6.11.1",
|
||||
"babel-runtime": "^6.11.6",
|
||||
"css-loader": "0.25.0",
|
||||
"eslint": "^3.4.0",
|
||||
"eslint": "^3.5.0",
|
||||
"eslint-plugin-react": "^6.2.0",
|
||||
"extract-text-webpack-plugin": "^1.0.1",
|
||||
"file-loader": "0.9.0",
|
||||
|
||||
Reference in New Issue
Block a user