forked from dominikg/svite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
90 lines (90 loc) · 2.08 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
84
85
86
87
88
89
90
{
"root": true,
"env": {
"browser": true,
"es6": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"prettier"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2019,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"svelte3",
"html",
"markdown"
],
"overrides": [
{
"files": ["./*.js","tools/**/*.js","**/*.config.js","bin/**/*.js"],
"env": {
"node": true,
"browser": false
}
},
{
"files": ["**/*.svelte"],
"processor": "svelte3/svelte3",
"rules": {
"import/first": "off",
"import/no-duplicates": "off",
"import/no-mutable-exports": "off",
"import/no-unresolved": "off"
}
},
{
"files": ["**/*.svx","**/*.md"],
"processor": "markdown/markdown",
"rules": {
"no-undef": "off",
"no-unused-vars": "off",
"no-console": "off",
"padded-blocks": "off"
}
},
{
"files": ["**/*.svx/*.**","**/*.md/*.**"],
"rules": {
"no-undef": "off",
"no-unused-vars": "off",
"no-console": "off",
"padded-blocks": "off"
}
},
{
"files": [
"**/*.test.js"
],
"env": {
"jest": true, // now **/*.svite.test.js files' env has both es6 *and* jest
"node": true,
"browser": true
},
// Can't extend in overrides: https://github.com/eslint/eslint/issues/8813
// "extends": ["plugin:jest/recommended"]
"plugins": ["jest"],
"rules": {
"jest/no-disabled-tests": "warn",
"jest/no-focused-tests": "error",
"jest/no-identical-title": "error",
"jest/prefer-to-have-length": "warn",
"jest/valid-expect": "error"
}
}
],
"ignorePatterns": [
"examples/svelte-preprocess-auto/src/App.svelte",
"examples/typescript/svelte-preprocess-auto/src/App.svelte",
"CHANGELOG.md"
]
}