Adjust eslint configuration (#389)

This commit is contained in:
Darin Morrison 2016-07-26 17:39:47 -06:00 committed by Guillermo Rauch
parent 86416cebdf
commit 4e04d1c4b1
3 changed files with 13 additions and 10 deletions

View file

@ -1 +1,6 @@
app/dist
app/node_modules
app/static
assets
build
dist

View file

@ -1,2 +0,0 @@
dist
node_modules

View file

@ -48,22 +48,22 @@
"react"
],
"rules": {
"yoda": 0,
"yoda": "off",
"semi": [
2,
"error",
"always"
],
"no-unused-vars": 2,
"no-extra-semi": 2,
"no-unused-vars": "error",
"no-extra-semi": "error",
"semi-spacing": [
2,
"error",
{
"before": false,
"after": true
}
],
"react/jsx-uses-react": 1,
"react/jsx-uses-vars": 1
"react/jsx-uses-react": "warn",
"react/jsx-uses-vars": "warn"
},
"parserOptions": {
"ecmaFeatures": {
@ -88,7 +88,7 @@
},
"scripts": {
"dev": "webpack --watch",
"lint": "eslint lib/ && eslint app/*.js",
"lint": "eslint .",
"build": "NODE_ENV=production webpack",
"test": "npm run lint",
"start": "electron app",