From ce7163cc0a850b38d043e755bb0c0c4c887ccf02 Mon Sep 17 00:00:00 2001 From: ido Date: Tue, 6 Oct 2015 17:18:50 +0300 Subject: [PATCH] update dependencies eslint rules --- .eslintrc | 31 +++++-------------------------- home.config.js | 1 + package.json | 9 +++++---- 3 files changed, 11 insertions(+), 30 deletions(-) diff --git a/.eslintrc b/.eslintrc index 6b83b73..12bd847 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,5 +1,5 @@ { - "plugins": ["react", "lodash3"], + "plugins": ["lodash3"], "rules": { "no-array-constructor": 2, "no-catch-shadow": 2, @@ -142,32 +142,11 @@ "no-useless-concat": 1, "block-spacing": [0, "always"], + "require-jsdoc": 0, + "global-require": 1, + "no-restricted-syntax": [2, "WithStatement"], - "react/display-name": 2, - "react/jsx-boolean-value": 1, - "react/jsx-closing-bracket-location": 1, - "react/jsx-curly-spacing": 1, - "react/jsx-indent-props": 1, - "react/jsx-max-props-per-line": 1, - "react/jsx-no-duplicate-props": 1, - "react/jsx-no-undef": 1, - "react/jsx-quotes": 1, - "react/jsx-sort-prop-types": 1, - "react/jsx-sort-props": 1, - "react/jsx-uses-react": 1, - "react/jsx-uses-vars": 1, - "react/no-danger": 1, - "react/no-did-mount-set-state": 1, - "react/no-did-update-set-state": 1, - "react/no-multi-comp": 1, - "react/no-set-state": 0, - "react/no-unknown-property": 1, - "react/prop-types": 1, - "react/react-in-jsx-scope": 1, - "react/require-extension": 1, - "react/self-closing-comp": 1, - "react/sort-comp": 1, - "react/wrap-multilines": 1, + "no-negated-condition": 1, "lodash3/prop-shorthand": 2, "lodash3/matches-prop-shorthand": 2, diff --git a/home.config.js b/home.config.js index d3be6ac..78fd27d 100644 --- a/home.config.js +++ b/home.config.js @@ -1,3 +1,4 @@ +/*eslint semi:0,no-unused-expressions:0,no-extra-parens:0,strict:0*/ ({ baseUrl: 'playground', //name: 'node_modules/almond/almond.js', // assumes a production build using almond diff --git a/package.json b/package.json index 7c362e3..eea30d5 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "rt": "./bin/rt.js" }, "scripts": { + "lint": "eslint .", "test": "node test/src/test.js", "test-cov": "istanbul cover test/src/test.js -- --require test/support/env --reporter dot --check-leaks test/ test/acceptance/", "patch": "npm version patch -m\"update version to %s\" && git push && git push --tags", @@ -39,7 +40,7 @@ "brfs": "^1.4.1", "coveralls": "^2.11.4", "eslint-plugin-lodash3": "^0.1.9", - "eslint-plugin-react": "^3.5.0", + "eslint-plugin-react": "^3.5.1", "grunt": "^0.4.5", "grunt-browserify": "^4.0.0", "grunt-contrib-requirejs": "^0.4.4", @@ -47,11 +48,11 @@ "grunt-contrib-watch": "^0.6.1", "grunt-eslint": "^17.2.0", "grunt-node-tap": "^0.1.61", - "istanbul": "^0.3.21", + "istanbul": "^0.3.22", "react": "^0.12.2", - "react-native": "^0.9.0", + "react-native": "^0.11.4", "react-templates": "^0.1.22", - "tape": "^4.2.0" + "tape": "^4.2.1" }, "keywords": [ "templates",