-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.cjs
67 lines (66 loc) · 1.87 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/* eslint-env node */
module.exports = {
root: true,
'env': {
'es2020': true,
},
extends: [
'@vue/eslint-config-typescript',
'@vue/typescript',
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:vue/vue3-essential',
'./.eslintrc-auto-import.json',
],
parserOptions: {
ecmaVersion: 'latest',
},
rules: {
'@typescript-eslint/no-unused-vars': [
'error',
{ varsIgnorePattern: '^_', argsIgnorePattern: '^_' },
],
'@typescript-eslint/explicit-function-return-type': ['error'],
'array-callback-return': 1,
'arrow-parens': ['error', 'always'],
'comma-spacing': ['error', { before: false, after: true }],
'generator-star-spacing': 'off',
'indent': ['error', 'tab'],
'key-spacing': [1, { beforeColon: false, afterColon: true }],
'keyword-spacing': ['error', { before: true }],
'max-len': [
'error',
{ code: 222, ignoreComments: true, ignoreTemplateLiterals: true },
],
'no-await-in-loop': 1,
'no-console': ['error', { allow: ['warn', 'error'] }],
'no-constructor-return': 1,
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-extra-parens': 1,
'no-multi-spaces': ['error'],
'no-multiple-empty-lines': ['error', { max: 1, maxEOF: 0 }],
'no-return-assign': 1,
'no-return-await': 1,
'no-tabs': 0,
'no-trailing-spaces': ['error', { skipBlankLines: true }],
'no-unused-vars': 'off',
'object-curly-spacing': ['error', 'always'],
'quotes': ['error', 'single', { allowTemplateLiterals: true }],
'require-atomic-updates': 1,
'semi': ['error', 'always'],
'space-in-parens': ['error', 'never'],
'vue/html-indent': [
'error',
'tab',
{
attribute: 1,
closeBracket: 0,
alignAttributesVertically: true,
ignores: [],
},
],
'vue/html-quotes': ['error', 'single'],
'vue/mustache-interpolation-spacing': ['error', 'always'],
'vue/script-indent': ['error', 'tab'],
},
};