-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
52 lines (49 loc) · 1.74 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
{
"ignorePatterns": ["vite-env.d.ts"],
"parserOptions": {
"sourceType": "module",
"ecmaVersion": "latest",
"extraFileExtensions": [".svelte"]
},
"overrides": [
{
"files": ["*.svelte"],
"parser": "svelte-eslint-parser",
"parserOptions": {
"parser": "@typescript-eslint/parser"
}
}
],
"env": {
"node": true,
"browser": true
},
"extends": ["plugin:@typescript-eslint/recommended", "plugin:@typescript-eslint/strict", "plugin:svelte/recommended", "plugin:jsx-a11y/strict", "airbnb"],
"plugins": ["@typescript-eslint"],
"parser": "@typescript-eslint/parser",
"rules": {
"indent": ["error", "tab", { "SwitchCase": 1 }],
"quotes": ["error", "double"],
"no-tabs": ["error", { "allowIndentationTabs": true }],
"eol-last": ["error", "never"],
"no-shadow": "off", // -> @typescript-eslint/no-shadow
"camelcase": ["error", { "ignoreImports": true, "properties": "never" }],
"no-plusplus": "off",
"prefer-const": "off", // -> https://svelte.dev/docs/svelte/$props
"brace-style": ["error", "allman"],
"comma-dangle": ["error", "never"],
"no-unused-vars": "off", // -> @typescript-eslint/no-unused-vars
"linebreak-style": "off",
"space-in-parens": ["error", "always"],
"array-bracket-spacing": ["error", "always"],
"template-curly-spacing": ["error", "always"],
"computed-property-spacing": ["error", "always"],
"import/extensions": ["error", "never", { "json": "ignorePackages" }],
"import/no-unresolved": ["error", { "commonjs": true, "caseSensitive": true, "ignore": ["vite-plugin-svelte", "./commands/*"] }],
"import/no-mutable-exports": "off",
"import/prefer-default-export": "off",
"import/no-extraneous-dependencies": "off",
"@typescript-eslint/no-shadow": "error",
"svelte/no-at-html-tags": "off"
}
}