-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
83 lines (83 loc) · 2.28 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
{
"env": {
"browser": true,
"es2021": true,
"jest": true
},
"extends": [
"standard",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"plugin:svelte/recommended",
"@rocketseat/eslint-config/node"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json",
"extraFileExtensions": [".svelte"],
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module",
"overrides": [
{
"files": ["*.svelte", "*.ts"],
"parser": "svelte-eslint-parser",
"parserOptions": {
"parser": "@typescript-eslint/parser"
}
}
]
},
"plugins": [
"@typescript-eslint/eslint-plugin"
],
"rules": {
"prettier/prettier": ["error", {
"endOfLine": "auto",
"printWidth": 80,
"tabWidth": 2,
"doubleQuote": true,
"trailingComma": "all",
"arrowParens": "always",
"semi": false
}],
"svelte/html-closing-bracket-spacing": "warn",
"svelte/indent": "off",
"svelte/html-quotes": "warn",
"svelte/max-attributes-per-line": "off",
"svelte/html-self-closing": "warn",
"svelte/no-trailing-spaces": "error",
"svelte/no-useless-mustaches": "error",
"svelte/valid-each-key": "error",
"svelte/mustache-spacing": ["warn", {
"textExpressions": "never",
"attributesAndProps": "never",
"directiveExpressions": "never",
"tags": {
"openingBrace": "never",
"closingBrace": "never"
}
}]
},
"@typescript-eslint/no-unused-vars": [
"error",
{
"varsIgnorePattern": "^_",
"argsIgnorePattern": "^_"
}
],
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx", ".d.ts"]
}
},
"ignorePatterns": [
"node_modules",
"build",
".svelte-kit",
"dist"
]
}