-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
47 lines (46 loc) · 1.46 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
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution');
module.exports = {
env: {
'vue/setup-compiler-macros': true,
'node': true
},
extends: [
'plugin:vue/vue3-essential',
'eslint:recommended',
'@vue/eslint-config-typescript/recommended',
'@vue/eslint-config-prettier'
],
globals: {
__DEV__: 'readonly'
},
parserOptions: {
ecmaVersion: 'latest'
},
root: true,
rules: {
'indent': ['error', 4, { SwitchCase: 1 }],
'linebreak-style': ['warn', 'windows'],
'max-len': ['warn', 120],
'no-console': 'off',
'no-extra-boolean-cast': 'off',
'prettier/prettier': ['warn', { trailingComma: 'none' }],
'quotes': ['error', 'single'],
'semi': ['error', 'always'],
'@typescript-eslint/ban-ts-comment': 'warn',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/indent': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/triple-slash-reference': 'off',
'@typescript-eslint/no-unused-vars': [
'warn',
{
varsIgnorePattern: '^__',
argsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_'
}
]
}
};