-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy patheslint.config.js
67 lines (65 loc) · 1.3 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
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
import antfu from '@antfu/eslint-config'
import { FlatCompat } from '@eslint/eslintrc'
import pluginTailwindcss from 'eslint-plugin-tailwindcss'
import nuxt from './.nuxt/eslint.config.mjs'
const compat = new FlatCompat()
export default antfu(
{
ignores: [
],
stylistic: {
indent: 'tab',
},
formatters: {
css: true,
html: true,
},
typescript: true,
vue: true,
jsonc: true,
yaml: false,
markdown: false,
},
nuxt,
{
ignores: [
],
},
{
rules: {
'ts/consistent-type-definitions': ['error', 'type'],
'node/prefer-global/process': ['error', 'always'],
'unused-imports/no-unused-vars': 'off',
'no-console': 'off',
'antfu/if-newline': 'off',
'antfu/top-level-function': 'off',
'curly': ['error', 'all'],
'@stylistic/comma-dangle': 'off',
'vue/multi-word-component-names': 'off',
'vue/max-attributes-per-line': [
'error',
{
singleline: {
max: 10
},
multiline: {
max: 1
}
}
],
'@typescript-eslint/no-unused-vars': 'off',
'no-unused-vars': 'off',
'vue/no-v-html': 'off',
}
},
{
plugins: { tailwindcss: pluginTailwindcss },
rules: {
...pluginTailwindcss.configs.recommended.rules,
...{
'tailwindcss/no-custom-classname': 'off',
'tailwindcss/migration-from-tailwind-2': 'off',
}
},
}
)