-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patheslint.config.js
47 lines (46 loc) · 968 Bytes
/
eslint.config.js
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
import config from "@antfu/eslint-config";
export default config({
stylistic: {
indent: "tab",
quotes: "double",
semi: true,
overrides: {
"antfu/if-newline": "off",
"curly": ["error", "multi-line"],
"style/brace-style": ["error", "1tbs", { allowSingleLine: true }],
"style/arrow-parens": ["error", "always"],
"ts/consistent-type-definitions": ["error", "type"],
"ts/no-this-alias": "off",
"ts/no-explicit-any": "error",
},
},
ignores: [
".DS_Store",
"**/.DS_Store/**",
"node_modules",
"**/node_modules/**",
"build",
"build/**",
"dist",
"dist/**",
".svelte-kit",
".svelte-kit/**",
"package",
"package/**",
".env",
"**/.env/**",
".env.*",
"**/.env.*/**",
"!.env.example",
"!**/.env.example/**",
"pnpm-lock.yaml",
"**/pnpm-lock.yaml/**",
"package-lock.json",
"**/package-lock.json/**",
"yarn.lock",
"**/yarn.lock/**",
],
svelte: true,
typescript: true,
componentExts: ["svelte"],
});