From 4e04d1c4b146755e9e5266d106f8c3c4f7b38330 Mon Sep 17 00:00:00 2001 From: Darin Morrison Date: Tue, 26 Jul 2016 17:39:47 -0600 Subject: [PATCH] Adjust eslint configuration (#389) --- .eslintignore | 5 +++++ app/.eslintignore | 2 -- package.json | 16 ++++++++-------- 3 files changed, 13 insertions(+), 10 deletions(-) delete mode 100644 app/.eslintignore diff --git a/.eslintignore b/.eslintignore index 1521c8b7..88203707 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1 +1,6 @@ +app/dist +app/node_modules +app/static +assets +build dist diff --git a/app/.eslintignore b/app/.eslintignore deleted file mode 100644 index de4d1f00..00000000 --- a/app/.eslintignore +++ /dev/null @@ -1,2 +0,0 @@ -dist -node_modules diff --git a/package.json b/package.json index 3efe0bf4..614f8f00 100644 --- a/package.json +++ b/package.json @@ -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",