generated from jstarter/vite-vue-starter
-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
.eslintrc.cjs
48 lines (48 loc) · 1.29 KB
/
.eslintrc.cjs
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
module.exports = {
root: true,
env: {
browser: true,
es2020: true
},
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
ecmaVersion: 'latest',
sourceType: 'module'
},
plugins: ['@typescript-eslint', 'vue', 'prettier'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:vue/vue3-recommended', // https://eslint.vuejs.org
'plugin:prettier/recommended'
],
rules: {
'prettier/prettier': 'warn',
'no-unref': 'off',
'no-undef': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'vue/html-indent': ['warn', 4],
'vue/multi-word-component-names': 'off',
'vue/singleline-html-element-content-newline': 'off',
'vue/html-self-closing': [
'warn',
{
html: {
void: 'always',
normal: 'never'
}
}
]
},
ignorePatterns: [
'dist',
'node_modules',
'tmp',
'*.d.ts',
'*.{md,json,yaml,yml}'
],
overrides: []
}