-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
38 lines (37 loc) · 1.1 KB
/
.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
/*
* @Descripttion:
* @Author: error: git config user.name && git config user.email & please set dead value or install git
* @Date: 2022-09-26
* @LastEditors: Jason [email protected]
* @LastEditTime: 2022-09-27
*/
module.exports = {
root: true,
env: {
browser: true,
es2021: true,
node: true,
'vue/setup-compiler-macros': true
},
extends: ['plugin:vue/vue3-recommended', 'plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended'],
parser: 'vue-eslint-parser',
parserOptions: {
ecmaVersion: 'latest',
parser: '@typescript-eslint/parser',
sourceType: 'module',
ecmaFeatures: {
jsx: true
}
},
plugins: ['vue', '@typescript-eslint', 'eslint-plugin-simple-import-sort'],
rules: {
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/ban-ts-ignore': 'off',
'vue/multi-word-component-names': 'off',
'vue/attribute-hyphenation': 'off',
'vue/v-on-event-hyphenation': 'off',
'simple-import-sort/imports': 'error', //排序
'simple-import-sort/exports': 'error' //排序
}
}