diff options
author | Stas Vilchik <stas.vilchik@sonarsource.com> | 2018-02-09 09:04:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-09 09:04:25 +0100 |
commit | 9ea8c58d99c31f1d0ca8abe2d535f11e9ca68dd7 (patch) | |
tree | 598ecf01d1d1bd880c38aa33427d6ac09cec15c6 /server/sonar-web/.eslintrc | |
parent | 198f987a5e79d2816a9d7172112aff1dfc669bfd (diff) | |
download | sonarqube-9ea8c58d99c31f1d0ca8abe2d535f11e9ca68dd7.tar.gz sonarqube-9ea8c58d99c31f1d0ca8abe2d535f11e9ca68dd7.zip |
update eslint and plugins, add new rules (#3041)
Diffstat (limited to 'server/sonar-web/.eslintrc')
-rw-r--r-- | server/sonar-web/.eslintrc | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/server/sonar-web/.eslintrc b/server/sonar-web/.eslintrc index 00b12a8d6b4..16ebf9a4f53 100644 --- a/server/sonar-web/.eslintrc +++ b/server/sonar-web/.eslintrc @@ -69,19 +69,19 @@ "no-return-await": "error", "no-self-compare": "error", "no-sequences": "error", - "no-throw-literal": "warn", + "no-throw-literal": "error", "no-unmodified-loop-condition": "error", - "no-unused-expressions": "warn", + "no-unused-expressions": "error", "no-useless-call": "error", - "no-useless-concat": "warn", - "no-useless-escape": "warn", - "no-useless-return": "warn", + "no-useless-concat": "error", + "no-useless-escape": "error", + "no-useless-return": "error", "no-void": "error", "no-with": "error", "radix": "error", "require-await": "error", "wrap-iife": "error", - "yoda": "warn", + "yoda": "error", // stylistic "camelcase": "warn", @@ -148,13 +148,18 @@ // react // TODO turn all rules to "error" eventually + "react/button-has-type": "warn", "react/display-name": "warn", "react/jsx-boolean-value": ["error", "always"], "react/jsx-no-comment-textnodes": "warn", "react/jsx-no-target-blank": "warn", "react/jsx-pascal-case": "error", + "react/jsx-sort-default-props": "warn", + "react/jsx-sort-props": "warn", + "react/no-access-state-in-setstate": "warn", "react/no-find-dom-node": "warn", "react/no-string-refs": "warn", + "react/no-this-in-sfc": "error", "react/self-closing-comp": "error", "react/sort-comp": [ "error", |