-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy patheslint.config.js
33 lines (31 loc) · 1.36 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
import antfu from '@antfu/eslint-config'
import { extend } from 'eslint-flat-config-utils'
import tailwind from 'eslint-plugin-tailwindcss'
import withNuxt from './.nuxt/eslint.config.mjs'
export default [
...tailwind.configs['flat/recommended'],
...await extend(withNuxt(
antfu({
formatters: {
css: true,
html: true,
},
rules: {
'@typescript-eslint/consistent-type-definitions': ['error', 'type'],
'import/order': 'off',
'no-console': 'off',
'perfectionist/sort-array-includes': ['error', { order: 'asc', type: 'natural' }],
'perfectionist/sort-enums': ['error', { order: 'asc', type: 'natural' }],
'perfectionist/sort-exports': ['error', { order: 'asc', type: 'natural' }],
'perfectionist/sort-imports': ['error', { order: 'asc', type: 'natural' }],
'perfectionist/sort-interfaces': ['error', { order: 'asc', type: 'natural' }],
'perfectionist/sort-named-exports': ['error', { order: 'asc', type: 'natural' }],
'perfectionist/sort-object-types': ['error', { order: 'asc', type: 'natural' }],
'perfectionist/sort-objects': ['error', { order: 'asc', type: 'natural' }],
'tailwindcss/no-custom-classname': 'off',
'vue/attribute-hyphenation': ['error', 'never'],
'vue/v-on-event-hyphenation': ['error', 'never'],
},
}),
)),
]