aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/.eslintrc
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-06-29 10:19:22 +0200
committerStas Vilchik <vilchiks@gmail.com>2016-06-29 10:19:22 +0200
commita142bec0b8d2e252aebeae383cc0ca3fe9f657bd (patch)
tree354a66acd72a8a3b594a62e07d86f3556191cff0 /server/sonar-web/.eslintrc
parent35fcfd2d718f8eede0f5f26106853e16f02f4769 (diff)
downloadsonarqube-a142bec0b8d2e252aebeae383cc0ca3fe9f657bd.tar.gz
sonarqube-a142bec0b8d2e252aebeae383cc0ca3fe9f657bd.zip
update js linters
Diffstat (limited to 'server/sonar-web/.eslintrc')
-rw-r--r--server/sonar-web/.eslintrc44
1 files changed, 22 insertions, 22 deletions
diff --git a/server/sonar-web/.eslintrc b/server/sonar-web/.eslintrc
index 58a1645c8b9..c1cff1a0ef4 100644
--- a/server/sonar-web/.eslintrc
+++ b/server/sonar-web/.eslintrc
@@ -26,40 +26,40 @@
],
"rules": {
- "arrow-spacing": 1,
- "comma-spacing": [1, { "before": false, "after": true }],
+ "arrow-spacing": 2,
+ "comma-spacing": 2,
"curly": 2,
- "eol-last": 1,
+ "eol-last": 2,
"eqeqeq": [2, "smart"],
- "indent": [1, 2, { "SwitchCase": 1, "VariableDeclarator": 2 }],
- "jsx-quotes": 1,
- "key-spacing": [1, { "beforeColon": false, "afterColon": true }],
- "no-multi-spaces": 1,
+ "indent": [2, 2, { "SwitchCase": 1, "VariableDeclarator": 2 }],
+ "jsx-quotes": 2,
+ "key-spacing": 2,
+ "no-multi-spaces": 2,
"no-self-compare": 2,
"no-unexpected-multiline": 2,
- "max-len": 0,
+ "max-len": [2, 120],
"no-const-assign": 2,
- "no-multiple-empty-lines": [1, { "max": 3 }],
- "no-spaced-func": 1,
+ "no-multiple-empty-lines": [2, { "max": 3 }],
+ "no-spaced-func": 2,
"no-this-before-super": 2,
- "no-trailing-spaces": 1,
- "no-unneeded-ternary": 1,
- "object-curly-spacing": [1, "always"],
+ "no-trailing-spaces": 2,
+ "no-unneeded-ternary": 2,
+ "object-curly-spacing": [2, "always"],
"no-var": 2,
"object-shorthand": 2,
- "one-var": [1, { "let": "never", "const": "never" }],
- "quotes": [1, "single", "avoid-escape"],
+ "one-var": [2, { "let": "never", "const": "never" }],
+ "quotes": [2, "single", "avoid-escape"],
"prefer-const": 2,
- "semi": [1, "always"],
- "keyword-spacing": 1,
+ "semi": [2, "always"],
+ "keyword-spacing": 2,
- "react/jsx-closing-bracket-location": [1, "after-props"],
+ "react/jsx-closing-bracket-location": [2, "after-props"],
"react/jsx-handler-names": 0,
- "react/jsx-max-props-per-line": [1, { "maximum": 3 }],
+ "react/jsx-max-props-per-line": [2, { "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-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"],
@@ -69,7 +69,7 @@
"react/prop-types": 0,
"react/react-in-jsx-scope": 2,
"react/self-closing-comp": 2,
- "react/sort-comp": 1
+ "react/sort-comp": 2
},
"settings": {