-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.cjs
52 lines (52 loc) · 1.54 KB
/
.eslintrc.cjs
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
module.exports = {
"env": {
"browser": true,
"es2021": true
},
"extends": [
"prettier",
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"import",
],
"rules": {
"import/no-default-export": "error",
"import/no-extraneous-dependencies": "error",
"func-style": ["error", "declaration"],
"import/order": [
"error",
{
"alphabetize": {
"order": "asc",
"caseInsensitive": true
},
"groups": [["builtin", "external"], "internal", "parent", "sibling", "index"],
"newlines-between": "always"
}
],
"@typescript-eslint/ban-ts-comment": "warn",
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-inferrable-types": "warn"
},
"overrides": [
{
"files": ["**/*.test.*"],
"rules": {
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-non-null-assertion": "off",
}
},
]
}