summaryrefslogtreecommitdiffstats
path: root/server/sonar-web/.eslintrc
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/.eslintrc')
-rw-r--r--server/sonar-web/.eslintrc22
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
}
}