aboutsummaryrefslogtreecommitdiff
path: root/src/rules/sonarjs/default.json
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-03-26 21:38:42 +0300
committerGitHub <noreply@github.com>2020-03-26 21:38:42 +0300
commit4aa0bc667bea03259f8bb26dba63795e74a86299 (patch)
treef31989196049dc78a45e29f057a375c202ed8405 /src/rules/sonarjs/default.json
parent1380e3839788779a3402a0bf4fb1a3ba57c0d162 (diff)
parent2bdf5c87990e7ebcd338f15245ca1e937a361750 (diff)
downloadeslint-config-4aa0bc667bea03259f8bb26dba63795e74a86299.tar.xz
eslint-config-4aa0bc667bea03259f8bb26dba63795e74a86299.zip
Merge pull request #2 from valentineus/developv0.0.14
Develop
Diffstat (limited to 'src/rules/sonarjs/default.json')
-rw-r--r--src/rules/sonarjs/default.json81
1 files changed, 80 insertions, 1 deletions
diff --git a/src/rules/sonarjs/default.json b/src/rules/sonarjs/default.json
index 0967ef4..5c39836 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/prefer-immediate-return": [
+ "error"
+ ],
+ "sonarjs/prefer-object-literal": [
+ "error"
+ ],
+ "sonarjs/prefer-single-boolean-return": [
+ "error"
+ ],
+ "sonarjs/prefer-while": [
+ "error"
+ ]
+}