-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
55 lines (55 loc) · 1.87 KB
/
.eslintrc.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
"env": {
"node": true,
"browser": true,
"es6": true,
"jest": true
},
"parser": "@typescript-eslint/parser",
"extends": [
"plugin:@typescript-eslint/recommended",
"eslint:recommended",
"plugin:sonarjs/recommended",
"plugin:storybook/recommended"
],
"plugins": ["sonarjs"],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
"no-unused-expressions": "off",
"sonarjs/cognitive-complexity": "off",
"sonarjs/no-all-duplicated-branches": "warn",
"sonarjs/no-collapsible-if": "warn",
"sonarjs/no-collection-size-mischeck": "warn",
"sonarjs/no-duplicate-string": "warn",
"sonarjs/no-duplicated-branches": "warn",
"sonarjs/no-empty-collection": "warn",
"sonarjs/no-extra-arguments": "warn",
"sonarjs/no-gratuitous-expressions": "warn",
"sonarjs/no-identical-expressions": "warn",
"sonarjs/no-identical-functions": "warn",
"sonarjs/no-ignored-return": "off",
"sonarjs/no-nested-template-literals": "warn",
"sonarjs/no-redundant-boolean": "warn",
"sonarjs/no-redundant-jump": "warn",
"sonarjs/no-small-switch": "warn",
"sonarjs/no-unused-collection": "warn",
"sonarjs/prefer-object-literal": "warn",
"sonarjs/prefer-single-boolean-return": "warn",
"@typescript-eslint/no-useless-escape": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-this-alias": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-unused-vars": "warn",
"import/no-named-as-default": "off",
"import/no-named-as-default-member": "off",
"import/no-unresolved": "off",
"no-prototype-builtins": "off"
},
"settings": {}
}