-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.mjs
42 lines (38 loc) · 1.08 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
import withNuxt from './.nuxt/eslint.config.mjs'
export default withNuxt(
{
rules: {
// General
'space-before-function-paren': ['error', 'always'],
'curly': ['error', 'all'],
'brace-style': ['error', '1tbs', { allowSingleLine: true }],
// Typescript
'@typescript-eslint/prefer-ts-expect-error': 'off',
'@typescript-eslint/no-explicit-any': 'off',
// Stylelistic
'@stylistic/space-before-function-paren': ['error', 'always'],
'@stylistic/brace-style': ['error', '1tbs', { allowSingleLine: true }],
// Vue
'vue/no-v-html': 'off',
'vue/no-multiple-template-root': 'off',
'vue/max-attributes-per-line': ['warn', {
singleline: {
max: 4,
},
multiline: {
max: 1,
},
}],
'vue/multi-word-component-names': 'off',
'vue/no-undef-components': ['error', {
ignorePatterns: [
'NuxtLoadingIndicator',
'NuxtRouteAnnouncer',
'NuxtLayout',
'NuxtPage',
'NuxtLink',
],
}],
},
},
)