-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
63 lines (54 loc) · 1.03 KB
/
eslint.config.js
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
import lit from 'eslint-plugin-lit'
import litA11y from 'eslint-plugin-lit-a11y'
import wc from 'eslint-plugin-wc'
import baseConfig from '../../eslint.config.js'
/** @typedef {import('eslint').Linter.Config} */
let Config
/** @typedef {import('eslint').Linter.RulesRecord} */
let RulesRecord
/** @type {Config} */
let ignoresConfig = {
ignores: [`build`],
}
/** @type {Config} */
let litConfig = {
plugins: {
lit,
},
rules: /** @type {RulesRecord} */ (lit.configs.all.rules),
}
let litA11yConfig = {
plugins: {
'lit-a11y': litA11y,
},
rules: litA11y.configs.recommended.rules,
}
/** @type {Config} */
let wcConfig = {
plugins: {
wc,
},
rules: {
...wc.configs[`best-practice`].rules,
'wc/guard-super-call': [`off`],
},
}
/** @type {Config[]} */
let overridesConfigs = [
{
files: [`vite.config.js`],
rules: {
'import/no-default-export': [`off`],
},
},
]
/** @type {Config[]} */
let config = [
ignoresConfig,
...baseConfig,
litConfig,
litA11yConfig,
wcConfig,
...overridesConfigs,
]
export default config