-
-
Notifications
You must be signed in to change notification settings - Fork 29
/
.eslintrc.cjs
52 lines (52 loc) · 1.28 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
49
50
51
52
module.exports = {
root: true,
env: {
node: true,
},
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
ecmaVersion: 2022,
sourceType: 'module',
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'plugin:vue/vue3-recommended',
'@vue/eslint-config-typescript',
'prettier',
'plugin:prettier/recommended',
],
plugins: ['prettier', '@typescript-eslint'],
rules: {
quotes: ['error', 'double'],
'prettier/prettier': [
'error',
{
endOfLine: 'auto',
},
],
'vue/multi-word-component-names': 'off',
'vue/attribute-hyphenation': ['error', 'always', {ignore: ['onLoad']}],
'no-unused-vars': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars-experimental': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'vue/html-self-closing': [
'error',
{
html: {
void: 'always',
normal: 'never',
component: 'always',
},
svg: 'always',
math: 'always',
},
],
},
ignorePatterns: ['dist'],
};