-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy patheslint.config.mjs
More file actions
34 lines (33 loc) · 1.05 KB
/
Copy patheslint.config.mjs
File metadata and controls
34 lines (33 loc) · 1.05 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
import antfu from '@antfu/eslint-config'
export default antfu({
typescript: true,
unocss: true,
svelte: true,
toml: false,
lessOpinionated: true,
formatters: { markdown: false },
rules: {
'e18e/prefer-static-regex': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'curly': 'off',
'import/consistent-type-specifier-style': 'off',
'jsonc/sort-keys': 'off',
'node/prefer-global/process': 'off',
'perfectionist/sort-imports': ['error', { type: 'natural' }],
'pnpm/yaml-enforce-settings': 'off',
'style/brace-style': ['error', '1tbs', { allowSingleLine: true }],
'style/jsx-one-expression-per-line': 'off',
'style/max-statements-per-line': 'off',
'style/member-delimiter-style': 'off',
'style/space-before-function-paren': ['error', 'never'],
'svelte/html-quotes': ['error', { prefer: 'double' }],
'unicorn/prefer-number-properties': 'off',
'yaml/quotes': 'off',
},
}, {
files: ['**/*.md'],
rules: {
'perfectionist/sort-imports': 'off',
'svelte/html-quotes': 'off',
},
})