forked from vitest-dev/docs-cn
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
42 lines (41 loc) · 952 Bytes
/
eslint.config.js
File metadata and controls
42 lines (41 loc) · 952 Bytes
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
import antfu, { GLOB_SRC } from '@antfu/eslint-config'
export default antfu({
stylistic: true,
typescript: true,
vue: true,
jsonc: false,
yaml: false,
ignores: [
'dist',
'node_modules',
'*.svelte',
'*.snap',
'*.d.ts',
'coverage',
'!.vitepress',
// contains technically invalid code to display pretty diff
'guide/snapshot.md',
// uses invalid js example
'advanced/api/import-example.md',
'guide/examples/*.md',
],
rules: {
'no-restricted-globals': 'off',
'no-empty-pattern': 'off',
},
}, {
files: [
`**/*.md`,
`**/*.md/${GLOB_SRC}`,
],
rules: {
'perfectionist/sort-imports': 'off',
'style/max-statements-per-line': 'off',
'import/newline-after-import': 'off',
'import/first': 'off',
'unused-imports/no-unused-imports': 'off',
'ts/method-signature-style': 'off',
'no-self-compare': 'off',
'import/no-mutable-exports': 'off',
},
})