-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.mjs
60 lines (59 loc) · 1.35 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
55
56
57
58
59
60
// @ts-check
import { createConfigForNuxt } from '@nuxt/eslint-config/flat';
import stylistic from '@stylistic/eslint-plugin';
// Run `npx @eslint/config-inspector` to inspect the resolved config interactively
export default createConfigForNuxt({
features: {
// Rules for module authors
tooling: true,
// Rules for formatting
stylistic: true,
},
dirs: {
src: [
'./playground',
],
},
}).append(
stylistic.configs.customize({
flat: true,
semi: true,
arrowParens: true,
braceStyle: '1tbs',
}),
{
rules: {
'no-useless-computed-key': ['error'],
'no-console': ['warn'],
'@stylistic/no-multi-spaces': ['error', { ignoreEOLComments: true }],
'@stylistic/space-before-function-paren': ['error', 'always'],
'@stylistic/function-call-spacing': ['error'],
'vue/html-self-closing': [
'error',
{
html: {
void: 'always',
},
},
],
'vue/max-attributes-per-line': [
'error',
{
singleline: { max: 5 },
multiline: { max: 5 },
},
],
'vue/block-order': [
'error',
{
order: ['template', 'script', 'style'],
},
],
'vue/multi-word-component-names': ['error', {
ignores: [
'index',
],
}],
},
},
);