-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patheslint.config.js
31 lines (30 loc) · 1000 Bytes
/
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
import antfu from '@antfu/eslint-config'
import tailwind from 'eslint-plugin-tailwindcss'
import eslintConfigPrettier from 'eslint-config-prettier'
import withNuxt from './.nuxt/eslint.config.mjs'
export default withNuxt(
antfu(
// Antfu
{ stylistic: false }, // Disable stylistic rules as we're using Prettier
// Node
{ rules: { 'node/prefer-global/process': 'off' } }, // Suppress warning about `process` being undefined
// TypeScript
{ rules: { 'ts/consistent-type-definitions': ['error', 'type'] } }, // Enforce `type` over `interface` for type definitions
// Vue
{
rules: {
'vue/attributes-order': ['error'],
'vue/v-bind-style': [
'error',
'shorthand',
{ sameNameShorthand: 'always' },
],
},
},
// Tailwind
...tailwind.configs['flat/recommended'],
{ rules: { 'tailwindcss/no-custom-classname': 'off' } },
// Prettier (Should always be last)
eslintConfigPrettier,
),
)