-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
53 lines (53 loc) · 1.15 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
53
module.exports = {
env: {
browser: true,
es2021: true,
},
plugins: [
'vue',
'@typescript-eslint',
],
extends: [
'standard',
'plugin:vue/vue3-recommended',
'plugin:@typescript-eslint/recommended',
],
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
ecmaVersion: 'latest',
sourceType: 'module',
},
overrides: [
{
env: {
node: true,
},
files: [
'.eslintrc.{js,cjs}',
],
parserOptions: {
sourceType: 'script',
},
},
],
ignorePatterns: [
'dist',
],
rules: {
'func-call-spacing': 0,
'vue/multi-word-component-names': 'off',
'vue/no-multiple-template-root': 0,
'vue/singleline-html-element-content-newline': 0,
'quotes': ['error', 'single', { allowTemplateLiterals: true }],
'no-unused-vars': 'off',
'no-undef': 'off',
'quote-props': ['error', 'consistent'],
'vue/max-attributes-per-line': ['error', {
singleline: 6,
}],
'semi': ['error', 'never'],
'comma-dangle': ['error', 'always-multiline'],
'vue/comma-dangle': ['error', 'always-multiline'],
},
}