/
.eslintrc.json
81 lines (81 loc) · 2.27 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
80
81
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2019,
"parser": "@typescript-eslint/parser",
"sourceType": "module",
"extraFileExtensions": [ ".svelte" ]
},
"plugins": [
"svelte3",
"@typescript-eslint"
],
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": [
"eslint:recommended"
],
"overrides": [
{
"files": ["*.svelte"],
"processor": "svelte3/svelte3"
}
],
"settings": {
"svelte3/typescript": true
},
"ignorePatterns": [
"dist",
"node_modules",
".vscode",
".git"
],
"rules": {
"prefer-const": 1,
"no-const-assign": 1,
"no-new-object": 1,
"no-array-constructor": 1,
"object-shorthand": 1,
"quote-props": [1, "as-needed"],
"prefer-object-spread": 1,
"array-callback-return": 1,
"no-useless-escape": 1,
"no-loop-func": 2,
"default-param-last": 2,
"space-before-blocks": 1,
"no-param-reassign": 2,
"prefer-arrow-callback": 1,
"brace-style": [1, "1tbs", { "allowSingleLine": true }],
"arrow-body-style": [1, "as-needed"],
"implicit-arrow-linebreak": [1, "beside"],
"no-useless-constructor": 2,
"no-dupe-class-members": 2,
"no-duplicate-imports": 2,
"generator-star-spacing": [1, {"before": false, "after": true}],
"dot-notation": 1,
"no-undef": 2,
"no-unused-vars": 2,
"no-nested-ternary": 1,
"no-unneeded-ternary": 1,
"no-mixed-operators": 2,
"nonblock-statement-body-position": 1,
"no-else-return": 1,
"spaced-comment": 1,
"indent": ["off"],
"keyword-spacing": 1,
"space-infix-ops": 1,
"no-whitespace-before-property": 1,
"padded-blocks": [1, "never"],
"no-multiple-empty-lines": 1,
"object-curly-spacing": [1, "always"],
"block-spacing": [1, "always"],
"func-call-spacing": [1, "never"],
"key-spacing": [1, { "beforeColon": false }],
"comma-spacing": 1,
"comma-style": [1, "last"],
"comma-dangle": [1, "never"]
}
}