-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
35 lines (34 loc) · 1.19 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
// This file is used to configure ESLint for the project.
require('@rushstack/eslint-patch/modern-module-resolution')
module.exports = {
root: true,
'extends': [
'plugin:vue/vue3-essential',
'eslint:recommended',
'@vue/eslint-config-typescript'
],
parserOptions: {
ecmaVersion: 'latest'
},
rules: {
'no-plusplus': 'off',
'@typescript-eslint/no-this-alias': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'import/no-unresolved': 'off',
'vuejs-accessibility/form-control-has-label': 'off',
'consistent-return': 'off', // 强制统一返回值
'no-param-reassign': 'off', // 参数重新分配
'no-underscore-dangle': 'off', // 使用下划线命名
'comma-spacing': 'off',
'vuejs-accessibility/click-events-have-key-events': 'off',
'max-len': 'off',
'no-unused-expressions': 'off', // 17
'linebreak-style': 'off',
'vue/multi-word-component-names': 'off', // 开启组件需要多单词
'vue/no-setup-props-destructure': 'off',
'vuejs-accessibility/anchor-has-content': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
"semi": ["error", "always"]
},
}