-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc.js
44 lines (44 loc) · 1.51 KB
/
.eslintrc.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
42
43
44
module.exports = {
root: true,
env: {
node: true,
},
extends: [
'plugin:vue/recommended',
'eslint:recommended',
'@vue/typescript/recommended',
],
rules: {
'quotes': ['error', 'single', { avoidEscape: true }],
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'indent': ['error', 4, { SwitchCase: 1, MemberExpression: 'off' }],
'space-before-function-paren': 'off',
'semi': ['error', 'always'],
'comma-dangle': ['error', 'always-multiline'],
'max-len': ['error', {
code: 120,
ignoreUrls: true,
}],
'vue/html-indent': ['error', 4],
'vue/max-attributes-per-line': ['error', { singleline: 3 }],
'@typescript-eslint/explicit-member-accessibility': ['error', {
accessibility: 'explicit',
overrides: {
constructors: 'no-public',
},
}],
'@typescript-eslint/no-inferrable-types': 'off',
'@typescript-eslint/camelcase': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': ['error', {
varsIgnorePattern: '^_$',
argsIgnorePattern: '^_$',
caughtErrorsIgnorePattern: '^_$',
}],
},
parserOptions: {
parser: '@typescript-eslint/parser',
},
};