-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.eslintrc.cjs
More file actions
42 lines (41 loc) · 1.12 KB
/
Copy path.eslintrc.cjs
File metadata and controls
42 lines (41 loc) · 1.12 KB
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
/*
* @Author: 杨晨誉
* @Date: 2022-03-30 10:32:18
* @LastEditors: ChenYu ycyplus@163.com
* @LastEditTime: 2022-11-24 16:34:41
* @FilePath: \vue3_vite3_elementPlus_admin\.eslintrc.cjs
* @Description: eslint配置
*
*/
require('@rushstack/eslint-patch/modern-module-resolution')
module.exports = {
root: true,
env: {
browser: true,
es2021: true,
'vue/setup-compiler-macros': true,
},
extends: [
'plugin:vue/vue3-essential',
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'eslint:recommended',
'@vue/eslint-config-typescript',
'./.eslintrc-auto-import.json',
],
rules: {
'@typescript-eslint/no-explicit-any': ['off'],
'@typescript-eslint/no-non-null-assertion': ['off'],
'vue/no-multiple-template-root': ['off'],
'vue/no-v-model-argument': ['off'],
'vue/no-v-for-template-key': ['off'],
'vue/no-mutating-props': ['off'],
'vue/multi-word-component-names': ['off'],
'@typescript-eslint/no-namespace': ['off'],
},
parser: 'vue-eslint-parser',
plugins: ['vue', '@typescript-eslint'],
parserOptions: {
ecmaVersion: 'latest',
},
}