-
Notifications
You must be signed in to change notification settings - Fork 4
/
eslint.config.mjs
54 lines (53 loc) · 1.57 KB
/
eslint.config.mjs
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
import tailwindcss from 'eslint-plugin-tailwindcss'
import withNuxt from './.nuxt/eslint.config.mjs'
export default withNuxt(
{
ignores: ['node_modules/**'],
plugins: {
tailwindcss,
},
rules: {
'vue/multi-word-component-names': 'off',
'vue/no-v-html': 'off',
'vue/html-self-closing': [
'error',
{
html: { void: 'never', normal: 'always', component: 'always' },
svg: 'always',
math: 'always',
},
],
// Stylistic rules
'vue/max-attributes-per-line': ['error', {
'singleline': 1,
'multiline': 1
}],
'vue/html-indent': ['error', 2, {
'attribute': 1,
'baseIndent': 1,
'closeBracket': 0,
'alignAttributesVertically': true,
'ignores': []
}],
'vue/html-closing-bracket-newline': ['error', {
'singleline': 'never',
'multiline': 'always'
}],
'vue/multiline-html-element-content-newline': ['error', {
'allowEmptyLines': false
}],
'vue/singleline-html-element-content-newline': ['error', {
'ignoreWhenNoAttributes': true,
'ignoreWhenEmpty': true
}],
'indent': ['error', 2],
'quotes': ['error', 'single', { 'avoidEscape': true }],
'jsx-quotes': ['error', 'prefer-single'],
'semi': ['error', 'never'],
'object-curly-spacing': ['error', 'always'],
// Tailwindcss
'tailwindcss/classnames-order': 'warn',
'tailwindcss/no-custom-classname': 'off',
},
}
)