-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
70 lines (70 loc) · 1.88 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
{
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:import/typescript",
"standard"
],
"env": {
"es6": true,
"browser": true
},
"plugins": [
"svelte3"
],
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"overrides": [
{
"files": ["*.svelte"],
"processor": "svelte3/svelte3",
"rules": {
"import/first": "off",
"import/no-duplicates": "off",
"import/no-mutable-exports": "off",
"import/no-unresolved": "off"
}
}
],
"rules": {
"object-curly-spacing": ["error", "always"],
"prefer-template": "error",
"no-useless-constructor": "off",
"import/extensions": 0,
"import/no-extraneous-dependencies": 0,
"import/prefer-default-export": 0,
"import/first": ["error", "absolute-first"],
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never"
}],
"indent": ["error", 2],
"no-console": ["warn", { "allow": ["warn", "error"] }],
"no-undef": 0,
"no-unused-vars": 0,
"no-unused-expressions": "off",
"no-multiple-empty-lines": ["error", { "max": 1, "maxBOF": 2, "maxEOF": 0 }],
"@typescript-eslint/member-ordering": "error",
"@typescript-eslint/explicit-member-accessibility": "error",
"@typescript-eslint/explicit-function-return-type": "error",
"consistent-return": "error",
"@typescript-eslint/no-explicit-any": ["error"],
"@typescript-eslint/no-unused-expressions": ["error"],
"@typescript-eslint/indent": "off",
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "enum",
"format": ["PascalCase"]
},
{
"selector": "enumMember",
"format": ["PascalCase"]
}
]
}
}