Repository navigation
Expand file tree
/
Copy patheslint.config.js
More file actions
84 lines (83 loc) · 1.94 KB
/
Copy patheslint.config.js
File metadata and controls
84 lines (83 loc) · 1.94 KB
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
import antfu from '@antfu/eslint-config'
export default antfu(
{
vue: true,
jsx: true,
stylistic: true,
toml: {
overrides: {
'toml/indent': 'off',
'toml/padding-line-between-tables': 'off',
'toml/tables-order': 'off',
},
},
markdown: true,
},
{
ignores: [
'build',
'dist/',
'dev-dist/',
'node_modules/',
'*.d.ts',
'!.vitepress',
'.vitepress/dist/*',
'.vitepress/cache/deps/*.*',
// Ignore non-JS/TS code blocks in markdown files
'**/*.md/*.bash',
'**/*.md/*.sh',
'**/*.md/*.json',
'**/*.md/*.html',
'**/*.md/*.yml',
'**/*.md/*.yaml',
'**/*.md/*.svelte',
],
},
{
files: [
'**/*.md/*.js',
'**/*.md/*.ts',
'**/*.md/*.jsx',
'**/*.md/*.tsx',
'**/*.md/*.json',
'**/*.md/*.html',
'**/*.md/*.svelte',
],
rules: {
'@stylistic/js/no-trailing-spaces': 'off',
'@typescript-eslint/no-this-alias': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/semi': 'off',
'@typescript-eslint/quotes': 'off',
'n/handle-callback-err': 'off',
'no-restricted-globals': 'off',
'no-restricted-syntax': 'off',
'no-labels': 'off',
'perfectionist/sort-named-imports': 'off',
'perfectionist/sort-imports': 'off',
'style/semi': 'off',
'style/no-mixed-spaces-and-tabs': 'off',
'style/no-tabs': 'off',
'style/indent': 'off',
'style/jsx-wrap-multilines': 'off',
'style/jsx-curly-newline': 'off',
'style/jsx-closing-tag-location': 'off',
'style/jsx-one-expression-per-line': 'off',
},
},
{
files: [
'*.d.ts',
],
rules: {
'unused-imports/no-unused-vars': 'off',
'eslint-comments/no-unlimited-disable': 'off',
},
},
{
files: ['**/*.ts'],
rules: {
'@typescript-eslint/no-unused-vars': 'off',
},
},
)