-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
79 lines (79 loc) · 1.78 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:svelte/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"extraFileExtensions": [
".svelte"
],
"project": [
"./tsconfig.base.json",
"./src/**/tsconfig.json"
]
},
"globals": {
"__dirname": true,
"Nullable": true,
"Optional": true,
"$$Generic": true
},
"overrides": [
{
"files": [ "*.svelte" ],
"parser": "svelte-eslint-parser",
"parserOptions": {
"parser": "@typescript-eslint/parser"
}
}
],
"settings": {
"svelte3/typescript": true
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"no-self-assign": "off",
"no-console": [ "error", {
"allow": [
"warn",
"error"
]
}],
"svelte/no-at-html-tags": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unused-vars": [
"error", { "argsIgnorePattern": "_" }
],
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/restrict-plus-operands": "off",
"comma-dangle": ["error", {
"arrays": "never",
"objects": "never",
"imports": "never",
"exports": "never"
}],
"indent": [ "error", "tab", { "SwitchCase": 1 } ],
"linebreak-style": 0,
"quotes": [ "error","double" ],
"semi": [ "error", "always" ],
"no-var": "error",
"curly": "error"
}
}