generated from unplugin/unplugin-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.js
37 lines (35 loc) · 1.03 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
import eslint from '@antfu/eslint-config'
// Run `npx eslint-flat-config-viewer@latest` to view all rules.
export default eslint({
rules: {
'style/brace-style': ['error', '1tbs', {
allowSingleLine: false,
}],
'curly': ['error', 'all'],
'style/arrow-parens': ['error', 'as-needed', {
requireForBlockBody: false,
}],
'antfu/top-level-function': 'off',
'style/multiline-ternary': 'off',
'no-console': 'off',
/* ======= vue ======= */
'vue/attribute-hyphenation': ['error', 'never'],
'vue/v-on-event-hyphenation': ['error', 'never', {
autofix: true,
}],
'vue/max-attributes-per-line': ['error', {
singleline: 3,
multiline: 1,
}],
'vue/html-closing-bracket-newline': ['error', {
singleline: 'never',
multiline: 'never',
}],
'vue/first-attribute-linebreak': ['error', {
singleline: 'beside',
multiline: 'below',
}],
'vue/singleline-html-element-content-newline': 'off',
'vue/prefer-separate-static-class': 'off',
},
})