mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2025-01-26 22:28:45 +01:00
Use babel as parser for eslint
This commit is contained in:
parent
4f7b528456
commit
be5e0fea00
2 changed files with 8 additions and 5 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue