-
Notifications
You must be signed in to change notification settings - Fork 75
/
.eslintrc
86 lines (68 loc) · 1.85 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{
"env": {
"browser": true,
"es6": true,
"jest": true,
"node": true
},
"extends": ["plugin:prettier/recommended", "plugin:svelte/recommended"],
"globals": {
"APP_NAME": "readonly",
"APP_VERSION": "readonly"
},
"overrides": [
{
"files": ["**/*.svelte"],
"processor": "svelte3/svelte3"
},
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2019,
"sourceType": "module"
},
"plugins": [
"svelte3",
"@typescript-eslint/eslint-plugin",
"prettier",
"write-good-comments",
"import",
"promise",
"sort-keys-fix",
"this",
"no-unsanitized",
"simple-import-sort"
],
"rules": {
"indent": ["error", 4],
"no-console": "error",
"no-debugger": "error",
"no-unsanitized/method": "error",
"no-unsanitized/property": "error",
"no-var": "error",
"promise/always-return": "error",
"promise/avoid-new": "warn",
"promise/catch-or-return": "error",
"promise/no-callback-in-promise": "warn",
"promise/no-native": "off",
"promise/no-nesting": "warn",
"promise/no-new-statics": "error",
"promise/no-promise-in-callback": "warn",
"promise/no-return-in-finally": "warn",
"promise/no-return-wrap": "error",
"promise/param-names": "error",
"promise/valid-params": "warn",
"sort-keys-fix/sort-keys-fix": "warn",
"this/no-this": "error",
"write-good-comments/write-good-comments": "warn",
"prettier/prettier": [
"error",
{
"endOfLine": "auto"
}
]
},
"settings": {
"svelte3/typescript": true
}
}