-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy path.eslintrc.js
46 lines (46 loc) · 1.1 KB
/
.eslintrc.js
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
module.exports = {
plugins: [
"eslint-plugin-tsdoc"
],
extends: [
"@joystream/eslint-config",
'plugin:sonarjs/recommended',
],
rules: {
"@typescript-eslint/no-unused-vars": "error",
"no-useless-constructor": "off",
"@typescript-eslint/no-namespace": "off",
"tsdoc/syntax": "warn",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/naming-convention": [
"warn",
{
"selector": "enumMember",
"format": ["UPPER_CASE"]
},
{
"selector": "variable",
"modifiers": ["const"],
"format": ["camelCase", "UPPER_CASE"],
"leadingUnderscore": "allow"
},
{
"selector": ["memberLike"],
"format": ["camelCase"],
"leadingUnderscore": "allow"
},
],
"sonarjs/cognitive-complexity": "warn",
"sonarjs/no-identical-functions": "warn",
"sonarjs/no-duplicate-string": "warn",
"sonarjs/no-collapsible-if": "warn"
},
"overrides": [
{
"files": ["*.test.ts"],
"rules": {
"no-unused-expressions": "off"
}
}
]
}