forked from danieldeusing/jesse-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
41 lines (40 loc) · 1.29 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
38
39
40
41
// @ts-check
import withNuxt from './.nuxt/eslint.config.mjs'
export default withNuxt(
{
rules: {
'no-console': 'off', // allow console.log in TypeScript files
'vue/no-multiple-template-root': 'off',
'@stylistic/indent': ['error', 2],
'vue/singleline-html-element-content-newline': 'off',
'vue/html-closing-bracket-newline': 'off',
'@stylistic/no-multiple-empty-lines': 0,
'@stylistic/no-trailing-spaces': 2,
'@stylistic/space-before-function-paren': ['error', {
anonymous: 'always',
named: 'never',
asyncArrow: 'always',
}],
'prefer-const': 'error',
'@stylistic/padded-blocks': 'warn',
'@stylistic/comma-dangle': 0,
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'vue/no-unused-vars': 'off',
'vue/no-unused-components': 'error',
'vue/max-attributes-per-line': ['error', {
singleline: 4,
multiline: {
max: 2,
},
}],
'@stylistic/no-extra-semi': 'warn',
'vue/no-mutating-props': 'off',
'vue/no-v-html': 'off',
'vue/multi-word-component-names': 0,
'@typescript-eslint/no-dynamic-delete': 0,
'vue/no-v-text-v-html-on-component': 0
},
},
)