diff options
author | Valentin Popov <info@valentineus.link> | 2020-03-26 20:12:27 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-03-26 20:12:27 +0300 |
commit | 46d05009cc38f7c1c97f5bb42d3c018cb606b681 (patch) | |
tree | ecb38f80a484a200a7ee5110ea8c21068d0ebddb /src/rules/sonarjs | |
parent | 582698ebfaa399e7d728380bd665ee81fb06cbeb (diff) | |
download | eslint-config-46d05009cc38f7c1c97f5bb42d3c018cb606b681.tar.xz eslint-config-46d05009cc38f7c1c97f5bb42d3c018cb606b681.zip |
feat(sonarjs): Added rules
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'src/rules/sonarjs')
-rw-r--r-- | src/rules/sonarjs/default.json | 81 |
1 files changed, 80 insertions, 1 deletions
diff --git a/src/rules/sonarjs/default.json b/src/rules/sonarjs/default.json index 0967ef4..cc5897a 100644 --- a/src/rules/sonarjs/default.json +++ b/src/rules/sonarjs/default.json @@ -1 +1,80 @@ -{} +{ + "sonarjs/cognitive-complexity": [ + "warn", + 25 + ], + "sonarjs/max-switch-cases": [ + "warn", + 30 + ], + "sonarjs/no-all-duplicated-branches": [ + "error" + ], + "sonarjs/no-collapsible-if": [ + "error" + ], + "sonarjs/no-collection-size-mischeck": [ + "error" + ], + "sonarjs/no-duplicate-string": [ + "warn", + 5 + ], + "sonarjs/no-duplicated-branches": [ + "error" + ], + "sonarjs/no-element-overwrite": [ + "error" + ], + "sonarjs/no-extra-arguments": [ + "error" + ], + "sonarjs/no-identical-conditions": [ + "error" + ], + "sonarjs/no-identical-expressions": [ + "error" + ], + "sonarjs/no-identical-functions": [ + "error" + ], + "sonarjs/no-inverted-boolean-check": [ + "error" + ], + "sonarjs/no-one-iteration-loop": [ + "error" + ], + "sonarjs/no-redundant-boolean": [ + "error" + ], + "sonarjs/no-redundant-jump": [ + "error" + ], + "sonarjs/no-same-line-conditional": [ + "error" + ], + "sonarjs/no-small-switch": [ + "error" + ], + "sonarjs/no-unused-collection": [ + "error" + ], + "sonarjs/no-use-of-empty-return-value": [ + "error" + ], + "sonarjs/no-useless-catch": [ + "warn" + ], + "sonarjs/please-immediate-return": [ + "error" + ], + "sonarjs/prefer-object-literal": [ + "error" + ], + "sonarjs/prefer-single-boolean-return": [ + "error" + ], + "sonarjs/prefer-while": [ + "error" + ] +} |