-
Notifications
You must be signed in to change notification settings - Fork 42
/
.eslintrc.json
84 lines (84 loc) · 2.29 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
82
83
84
{
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:svelte/recommended",
"plugin:import/recommended",
"plugin:import/typescript"
],
"settings": {
"import/resolver": {
"typescript": { "project": "tsconfig.json" },
"node": { "project": "tsconfig.json" }
}
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json",
"extraFileExtensions": [".svelte"]
},
"root": true,
"ignorePatterns": ["/dist/**"],
"rules": {
"indent": ["error", 2, { "SwitchCase": 1 }],
"max-len": ["error", {
"code": 100,
"tabWidth": 2
}],
"semi": ["error", "always"],
"quotes": ["error", "single"],
"comma-dangle": ["error", "never"],
"no-multi-spaces": ["error", { "ignoreEOLComments": true }],
"array-bracket-newline": ["error", {
"multiline": true,
"minItems": 4
}],
"array-element-newline": ["error", "consistent"],
"object-curly-newline": ["error", {
"multiline": true,
"minProperties": 4
}],
"object-curly-spacing": ["error", "always", {
"arraysInObjects": false,
"objectsInObjects": false
}],
"object-property-newline": ["error", { "allowAllPropertiesOnSameLine": true }],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/member-delimiter-style": "error",
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"import/order": ["error", {
"groups": [
"builtin",
"external",
"internal",
"parent",
"sibling",
"index"
],
"newlines-between": "never",
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}],
"import/consistent-type-specifier-style": "error",
"import/no-duplicates": "off",
"import/newline-after-import": "error"
},
"overrides": [
{
"files": ["*.svelte"],
"parser": "svelte-eslint-parser",
"parserOptions": { "parser": "@typescript-eslint/parser" },
"rules": {
"no-undef": "off",
"svelte/first-attribute-linebreak": "error",
"svelte/max-attributes-per-line": ["error", {
"multiline": 1,
"singleline": 3
}]
}
}
]
}