diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-12-08 16:48:52 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-12-08 16:48:52 +0100 |
commit | 201847de4d282acafd5fb8c969f077d713d1bdf1 (patch) | |
tree | 2ee51f526ed63d2620a7b8faef8fac69b74da0fc /server/sonar-web/.eslintrc | |
parent | 34b14e12bebafed93d21ac620e7b2b5dc3ef7d55 (diff) | |
download | sonarqube-201847de4d282acafd5fb8c969f077d713d1bdf1.tar.gz sonarqube-201847de4d282acafd5fb8c969f077d713d1bdf1.zip |
improve code quality
Diffstat (limited to 'server/sonar-web/.eslintrc')
-rw-r--r-- | server/sonar-web/.eslintrc | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/server/sonar-web/.eslintrc b/server/sonar-web/.eslintrc index a063471955c..19e2098c50f 100644 --- a/server/sonar-web/.eslintrc +++ b/server/sonar-web/.eslintrc @@ -32,7 +32,30 @@ ], "rules": { - "quotes": [2, "single", "avoid-escape"], + "arrow-spacing": 1, + "comma-spacing": [1, { "before": false, "after": true }], + "curly": 2, + "eol-last": 1, + "eqeqeq": [2, "smart"], + "indent": [1, 2, { "SwitchCase": 1, "VariableDeclarator": 2 }], + "jsx-quotes": 1, + "key-spacing": [1, { "beforeColon": false, "afterColon": true }], + "no-multi-spaces": 1, + "no-self-compare": 2, + "no-unexpected-multiline": 2, + "max-len": [1, 120, 2], + "no-const-assign": 2, + "no-multiple-empty-lines": [1, { "max": 3 }], + "no-spaced-func": 1, + "no-this-before-super": 2, + "no-trailing-spaces": 1, + "no-unneeded-ternary": 1, + "object-curly-spacing": [1, "always"], + "one-var": [1, { "let": "never", "const": "never" }], + "quotes": [1, "single", "avoid-escape"], + "prefer-const": 0, + "semi": [1, "always"], + "space-after-keywords": [1, "always"], "react/jsx-closing-bracket-location": [1, "after-props"], "react/jsx-handler-names": 0, |