-
-
Notifications
You must be signed in to change notification settings - Fork 64
/
.eslintrc.json
60 lines (60 loc) · 1.75 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["svelte3", "@typescript-eslint"],
"extends": ["eslint:recommended", "prettier"],
"rules": {
"no-useless-escape": "off",
"no-prototype-builtins": "off",
"no-async-promise-executor": "off",
"semi": ["error", "always"],
"no-multiple-empty-lines": ["error", { "max": 2 }],
"no-console": [
"error",
{
"allow": ["info", "warn", "error"]
}
]
},
"parserOptions": {
"extraFileExtensions": ".svelte"
},
"overrides": [
{
"files": ["**/*.js"],
"env": {
"node": true
}
},
{
"files": ["extension/**/*.svelte"],
"processor": "svelte3/svelte3",
"rules": {
"no-undef": "off"
}
},
{
"files": ["**/*.ts", "extension/**/*.svelte"],
"extends": "plugin:@typescript-eslint/recommended",
"rules": {
"@typescript-eslint/no-empty-interface": "error",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{ "argsIgnorePattern": "^_" }
],
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-this-alias": [
"error",
{
"allowedNames": ["this_"]
}
]
}
}
],
"settings": {
"svelte3/typescript": true
}
}