This is an automated email from the ASF dual-hosted git repository. amaranhao pushed a commit to branch upgrade-to-eslint-v4 in repository https://gitbox.apache.org/repos/asf/couchdb-fauxton.git
commit 9f9db0feb3e710f4b6cc4af6ecf96689b72a79f9 Author: Antonio Maranhao <[email protected]> AuthorDate: Tue Jan 2 11:33:28 2018 -0500 Upgrade eslint to v4 with recommended config --- .eslintrc | 10 ++++------ package.json | 6 +++--- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.eslintrc b/.eslintrc index a83517b..e062325 100644 --- a/.eslintrc +++ b/.eslintrc @@ -6,14 +6,10 @@ "react" ], - "rules-todo": { - "space-unary-ops": 2, - "camelcase": 2 - }, + "extends": "eslint:recommended", "rules": { "semi": [2, "always"], - "no-undef": 2, "keyword-spacing": 2, "space-infix-ops": 2, "space-before-blocks": 2, @@ -22,11 +18,13 @@ "comma-spacing": [2, {"before": false, "after": true}], "computed-property-spacing": [2, "never"], "eol-last": 2, + "no-case-declarations": 0, + "no-console": [2, { "allow": ["warn", "error", "info"] }], "no-mixed-spaces-and-tabs": [2, "smart-tabs"], "no-trailing-spaces": 2, "semi-spacing": [2, {"before": false, "after": true}], - "no-empty": 2, "space-in-parens": [2, "never"], + "space-unary-ops": 2, "no-unused-vars": [2, {"varsIgnorePattern": "ReactDOM"}], "react/jsx-uses-vars": 2, "react/jsx-uses-react": 2 diff --git a/package.json b/package.json index 9571531..4bb3cce 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "babel": "^6.3.26", "babel-cli": "^6.22.2", "babel-core": "^6.22.1", - "babel-eslint": "~8.0.1", + "babel-eslint": "~8.1.2", "babel-loader": "^6.2.9", "babel-plugin-array-includes": "^2.0.3", "babel-plugin-transform-class-properties": "^6.24.1", @@ -58,9 +58,9 @@ "couchapp": "~0.11.0", "css-loader": "^0.26.1", "d3": "^3.4.11", - "eslint": "^3.14.1", + "eslint": "^4.14.0", "eslint-loader": "^1.3.0", - "eslint-plugin-react": "^6.7.1", + "eslint-plugin-react": "^7.5.1", "exports-loader": "^0.6.2", "expose-loader": "0.7.1", "express": "^4.14.1", -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
