-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.json
More file actions
53 lines (53 loc) · 1.32 KB
/
.eslintrc.json
File metadata and controls
53 lines (53 loc) · 1.32 KB
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
{
"extends": ["canonical"],
"env": {
"node": true,
"es6": true
},
"rules": {
"indent": ["error", 4],
"linebreak-style": ["off"],
"canonical/filename-match-exported": "off",
"canonical/filename-match-regex": "off" ,
"complexity": "off",
"valid-typeof": "off",
"array-bracket-newline": ["error", "consistent"],
"no-prototype-builtins": "off"
},
"overrides": [
{
"extends": [
"canonical/jsdoc",
"canonical/regexp",
"canonical/typescript"
],
"files": ["*.ts"],
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/indent": ["error", 4],
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-extra-parens": "off",
"jsdoc/require-param-type": ["error"]
}
},
{
"extends": [
"canonical/typescript"
],
"files": ["*.test.ts"],
"parserOptions": {
"project": "./test/tsconfig.json"
},
"rules": {
"import/no-unassigned-import": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/indent": ["error", 4]
}
}
],
"ignorePatterns": ["dist", "node_modules", "vite.config.js"],
"root": true
}