diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2016-09-06 17:44:55 +0200 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2016-09-06 17:44:55 +0200 |
commit | c1e3840edf6c7fd36a3149b280a3d276ebce03a5 (patch) | |
tree | ed32b53993619d08adacaa97295c3b699aafcccf /server/sonar-web/.eslintrc | |
parent | bae4f619db5198f7cb67a7848fdff756d83b5744 (diff) | |
download | sonarqube-c1e3840edf6c7fd36a3149b280a3d276ebce03a5.tar.gz sonarqube-c1e3840edf6c7fd36a3149b280a3d276ebce03a5.zip |
improve code quality
Diffstat (limited to 'server/sonar-web/.eslintrc')
-rw-r--r-- | server/sonar-web/.eslintrc | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/server/sonar-web/.eslintrc b/server/sonar-web/.eslintrc index 06d77b7ab50..d0a6a17a2ea 100644 --- a/server/sonar-web/.eslintrc +++ b/server/sonar-web/.eslintrc @@ -1,6 +1,7 @@ { "extends": [ "eslint:recommended", + "plugin:react/recommended", "plugin:import/errors", "plugin:import/warnings" ], @@ -53,23 +54,9 @@ "semi": [2, "always"], "keyword-spacing": 2, - "react/jsx-closing-bracket-location": [2, "after-props"], - "react/jsx-handler-names": 0, - "react/jsx-max-props-per-line": [2, { "maximum": 3 }], - "react/jsx-no-duplicate-props": 2, - "react/jsx-no-undef": 2, - "react/jsx-pascal-case": 2, - "react/jsx-uses-react": 2, - "react/jsx-uses-vars": 2, - "react/no-did-mount-set-state": [2, "allow-in-func"], - "react/no-did-update-set-state": [2, "allow-in-func"], - "react/no-direct-mutation-state": 2, - "react/no-multi-comp": 0, - "react/no-unknown-property": 2, - "react/prop-types": 0, - "react/react-in-jsx-scope": 2, - "react/self-closing-comp": 2, - "react/sort-comp": 2 + "react/display-name": 0, + "react/no-find-dom-node": 0, + "react/prop-types": 0 }, "settings": { |