Use babel as parser for eslint

This commit is contained in:
lukasmartinelli 2016-09-20 18:10:57 +02:00
parent 4f7b528456
commit be5e0fea00
2 changed files with 8 additions and 5 deletions

View file

@ -8,3 +8,4 @@ install:
- npm install
script:
- npm run build
- npm run lint

View file

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