-
Notifications
You must be signed in to change notification settings - Fork 354
/
.eslintrc.js
35 lines (35 loc) · 901 Bytes
/
.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
module.exports = {
env: {
browser: true,
es2021: true,
commonjs: true,
es6: true,
node: true,
},
extends: ['airbnb-base', 'eslint:recommended', 'plugin:vue/vue3-recommended','prettier'],
parserOptions: {
ecmaVersion: 12,
parser: '@typescript-eslint/parser',
sourceType: 'module',
},
plugins: ['vue', '@typescript-eslint'],
rules: {
'import/no-unresolved': 'off',
'import/extensions': 'off',
'import/no-absolute-path': 'off',
'import/no-extraneous-dependencies': 'off',
'vue/no-multiple-template-root': 'off',
'vue/html-self-closing': 'off',
// "consistent-return":"off", // 返回类型一致性
'no-console': 'off',
'no-plusplus':'off',
'no-bitwise':'off',
'no-param-reassign': [
'error',
{
props: true,
ignorePropertyModificationsFor: ['state', 'config'],
},
],
},
};