-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
63 lines (63 loc) · 2.1 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
56
57
58
59
60
61
62
63
{
"env": {
"es2022": true,
"node": true
},
"extends": ["eslint:recommended", "plugin:node/recommended", "plugin:github/recommended", "plugin:sonarjs/recommended", "prettier"],
"parserOptions": {
"ecmaFeatures": {
"impliedStrict": true
},
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["node", "github", "sonarjs"],
"rules": {
"arrow-body-style": ["warn", "always"],
"camelcase": "warn",
"consistent-return": "warn",
"curly": "warn",
"default-case-last": "warn",
"dot-notation": "warn",
"eqeqeq": "warn",
"eslint-comments/no-use": "off",
"filenames/match-regex": "off",
"i18n-text/no-en": "off",
"import/extensions": ["warn", "always"],
"import/no-unresolved": "off",
"no-duplicate-imports": "warn",
"no-lonely-if": "warn",
"no-return-assign": "warn",
"no-return-await": "warn",
"no-unused-vars": "warn",
"no-use-before-define": "warn",
"no-var": "warn",
"node/exports-style": ["warn", "module.exports"],
"node/file-extension-in-import": ["warn", "always"],
"node/no-missing-import": "off",
"node/no-unsupported-features/es-syntax": "warn",
"node/prefer-global/buffer": ["warn", "always"],
"node/prefer-global/console": ["warn", "always"],
"node/prefer-global/process": ["warn", "always"],
"node/prefer-global/text-decoder": ["warn", "always"],
"node/prefer-global/text-encoder": ["warn", "always"],
"node/prefer-global/url": ["warn", "always"],
"node/prefer-global/url-search-params": ["warn", "always"],
"node/prefer-promises/dns": "warn",
"node/prefer-promises/fs": "warn",
"object-shorthand": "warn",
"prefer-arrow-callback": "warn",
"prefer-const": "warn",
"prefer-rest-params": "warn",
"prefer-spread": "warn",
"require-await": "warn",
"sonarjs/cognitive-complexity": "off",
"sonarjs/no-duplicate-string": "warn",
"sonarjs/no-identical-functions": "warn",
"sonarjs/no-nested-switch": "off",
"sonarjs/no-small-switch": "warn",
"sort-imports": "warn",
"sort-keys": "warn",
"sort-vars": "warn"
}
}