diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-12-08 15:05:06 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-12-08 15:05:06 +0100 |
commit | 34b14e12bebafed93d21ac620e7b2b5dc3ef7d55 (patch) | |
tree | 0d25b8cee29e47f3dc0d9f3326897e4c84de207c /server/sonar-web/.eslintrc | |
parent | 0a3a9ea2a47fe09082d9079fdc89a2a025de79e2 (diff) | |
download | sonarqube-34b14e12bebafed93d21ac620e7b2b5dc3ef7d55.tar.gz sonarqube-34b14e12bebafed93d21ac620e7b2b5dc3ef7d55.zip |
improve code quality
Diffstat (limited to 'server/sonar-web/.eslintrc')
-rw-r--r-- | server/sonar-web/.eslintrc | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/server/sonar-web/.eslintrc b/server/sonar-web/.eslintrc index 6a403ba8a2f..a063471955c 100644 --- a/server/sonar-web/.eslintrc +++ b/server/sonar-web/.eslintrc @@ -32,7 +32,25 @@ ], "rules": { - "quotes": [ 2, "single", "avoid-escape" ], - "react/jsx-uses-react": 1 + "quotes": [2, "single", "avoid-escape"], + + "react/jsx-closing-bracket-location": [1, "after-props"], + "react/jsx-handler-names": 0, + "react/jsx-key": 2, + "react/jsx-max-props-per-line": [1, { "maximum": 3 }], + "react/jsx-no-duplicate-props": 2, + "react/jsx-no-undef": 2, + "react/jsx-pascal-case": 1, + "react/jsx-uses-react": 1, + "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": 1 } } |