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 dist

View file

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

View file

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