-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
.eslintrc
executable file
·71 lines (71 loc) · 2.33 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
71
{
"root": true,
"extends": [
"eslint:recommended",
"plugin:svelte/recommended",
"plugin:import/recommended",
"plugin:import/errors",
"plugin:import/warnings"
],
"env": {
"browser": true,
"es2022": true,
"node": true
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": "latest",
"project": ["./jsconfig.json"],
"extraFileExtensions": [".svelte"]
},
"settings": {
"import/parsers": {
"svelte-eslint-parser": [".svelte"],
"@typescript-eslint/parser": [ ".ts", ".tsx" ],
"espree": [".js"]
},
"import/resolver": {
"node": { "extensions": [ ".js", ".svelte", ".ts" ] },
"eslint-import-resolver-custom-alias": {
"alias": {
"@testing-library/svelte": "./node_modules/@testing-library/svelte/src",
"svelte": "./node_modules/svelte/src/runtime"
}
}
}
},
"plugins": [ "import" ],
"rules": {
"brace-style": ["error", "stroustrup", { "allowSingleLine": true }],
"indent": [ "error", "tab" ],
"quotes": [ "error", "single", "avoid-escape" ],
"semi": [ "error", "always" ],
"func-call-spacing": ["error", "never"],
"space-before-function-paren": ["error", "always"],
"object-curly-spacing": [ "error", "always" ],
"array-bracket-spacing": [ "error", "never" ],
"space-before-blocks": [ "error", "always" ],
"space-in-parens": [ "error", "never" ],
"newline-per-chained-call": ["error", { "ignoreChainWithDepth": 3 }],
"no-undef": "error",
"no-mixed-spaces-and-tabs": "error",
"no-unused-vars": "error",
"no-trailing-spaces": "error",
"no-multi-spaces": ["error", { "ignoreEOLComments": true }],
"key-spacing": [ "error", { "beforeColon": false, "afterColon": true, "mode": "strict" } ],
"no-shadow": "error",
"eol-last": 1,
"curly": 0,
"no-console": 0,
"comma-dangle": 0,
"no-cond-assign": 0,
"prefer-promise-reject-errors": "error",
"prefer-const": ["error", { "destructuring": "any", "ignoreReadBeforeAssign": false } ],
"import/no-unresolved": [2, { "commonjs": true, "amd": true }],
"import/named": 2,
"import/namespace": 2,
"import/default": 2,
"import/export": 2,
"svelte/no-at-html-tags": 0
}
}