-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.mjs
More file actions
33 lines (28 loc) · 805 Bytes
/
eslint.config.mjs
File metadata and controls
33 lines (28 loc) · 805 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
import antfu from '@antfu/eslint-config'
import perfectionist from 'eslint-plugin-perfectionist'
export default antfu({
// `.eslintignore` is no longer supported in Flat config, use `ignores` instead
ignores: [
'**/fixtures',
// ...globs
],
// Disable jsonc and yaml support
jsonc: false,
// lessOpinionated: true,
rules: {
'import/order': 'off',
...perfectionist.configs['recommended-natural'].rules,
},
// Enable stylistic formatting rules
// stylistic: true,
stylistic: {
indent: 2, // 4, or 'tab'
quotes: 'single', // or 'double'
},
// Type of the project. 'lib' for libraries, the default is 'app'
type: 'lib',
// TypeScript and Vue are autodetected, you can also explicitly enable them:
typescript: true,
vue: true,
yaml: false,
})