-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
executable file
·49 lines (49 loc) · 1.32 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
{
"root": true,
"env": {
"es2021": true,
"node": true,
"browser": false
},
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": "latest"
},
"overrides": [
{
"files": ["src/ui/**/*.svelte"],
"processor": "svelte/svelte"
}
],
"plugins": ["@typescript-eslint", "@stylistic/js", "simple-import-sort", "import", "eslint-plugin-svelte"],
"ignorePatterns": ["node_modules/**", "**/dist/**"],
"rules": {
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
],
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"import/first": "error",
"import/newline-after-import": "error",
"import/no-duplicates": "error",
"@stylistic/js/object-curly-spacing": ["error", "always"],
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/explicit-function-return-type": "error",
"semi": ["error", "always"],
"comma-dangle": ["warn", "always-multiline"],
"quotes": [
"warn",
"single",
{
"avoidEscape": true
}
]
}
}