-
Notifications
You must be signed in to change notification settings - Fork 8
/
.eslintrc.js
43 lines (42 loc) · 1018 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
36
37
38
39
40
41
42
43
/*
* @Author: June
* @Description:
* @Date: 2024-11-30 17:11:05
* @LastEditTime: 2024-11-30 17:43:48
* @LastEditors: June
*/
module.exports = {
root: true,
parser: 'vue-eslint-parser',
env: {
browser: true,
es2021: true,
node: true
},
extends: [
'eslint:recommended',
'plugin:vue/vue3-essential',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'./.eslintrc-auto-import.json'
],
overrides: [],
parserOptions: {
parser: '@typescript-eslint/parser',
ecmaVersion: 'latest',
sourceType: 'module',
ecmaFeatures: {
jsx: true
}
},
plugins: ['vue', '@typescript-eslint'],
rules: {
'vue/multi-word-component-names': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-this-alias': 'off',
'prefer-const': 'off', // 暂关
'@typescript-eslint/no-unused-vars': 'off'
}
}