diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-12-08 17:55:39 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-12-09 16:29:49 +0100 |
commit | 120dc80f1074dbd533e05b33d5a7fd797702e701 (patch) | |
tree | 1253723ba2414918ef90f4498ef852261d33a570 /server/sonar-web/.eslintrc | |
parent | 96a45ea610c57428e9355dd867d646d041438f64 (diff) | |
download | sonarqube-120dc80f1074dbd533e05b33d5a7fd797702e701.tar.gz sonarqube-120dc80f1074dbd533e05b33d5a7fd797702e701.zip |
improve code quality
Diffstat (limited to 'server/sonar-web/.eslintrc')
-rw-r--r-- | server/sonar-web/.eslintrc | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/server/sonar-web/.eslintrc b/server/sonar-web/.eslintrc index 19e2098c50f..77cfb1f6edd 100644 --- a/server/sonar-web/.eslintrc +++ b/server/sonar-web/.eslintrc @@ -14,21 +14,17 @@ }, "globals": { - "define": true, - "require": true, - "numeral": true, "key": true, "d3": true, - "baseUrl": true, - "t": true, - "tp": true + "baseUrl": true }, "parser": "babel-eslint", "plugins": [ "react", - "mocha" + "mocha", + "import" ], "rules": { @@ -74,6 +70,12 @@ "react/prop-types": 0, "react/react-in-jsx-scope": 2, "react/self-closing-comp": 2, - "react/sort-comp": 1 + "react/sort-comp": 1, + + "import/no-unresolved": 2, + "import/named": 2, + "import/export": 2, + "import/no-duplicates": 2, + "import/imports-first": 2 } } |