-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
66 lines (66 loc) · 1.57 KB
/
.eslintrc
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
64
65
66
{
"root": true,
"parserOptions": {
"ecmaVersion": 2022,
"sourceType": "module"
},
"ignorePatterns": ["graveyard/**/*.ts", "packages/test/src/load/**"],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "import", "prettier"],
"extends": [
"eslint:recommended",
"plugin:import/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:sonarjs/recommended"
],
"settings": {
"import/resolver": {
"typescript": true,
"node": true
}
},
"rules": {
"prettier/prettier": "warn",
"id-length": [2, { "exceptions": ["i", "j", "k", "x", "y", "z"], "properties": "never" }],
"import/first": "error",
"import/order": [
"error",
{
"groups": [
"builtin",
"external",
"internal",
"type",
"parent",
"sibling",
"index",
"object",
"unknown"
]
}
],
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/ban-types": [
"error",
{
"types": {
"{}": false
}
}
],
"@typescript-eslint/no-non-null-assertion": "error",
"@typescript-eslint/no-unused-vars": [
"error",
{
"args": "after-used",
"ignoreRestSiblings": true,
"argsIgnorePattern": "^_",
"destructuredArrayIgnorePattern": "^_"
}
],
"sonarjs/prefer-immediate-return": "off",
"sonarjs/no-extra-arguments": "off",
"sonarjs/no-small-switch": "off",
"sonarjs/no-duplicated-branches": "warn"
}
}