forked from Be-UI/Be-UI
/
.eslintrc.js
35 lines (34 loc) · 945 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 = {
root: true,
env: {
browser: true, // browser global variables
es2021: true, // adds all ECMAScript 2021 globals and automatically sets the ecmaVersion parser option to 12.
},
parserOptions: {
ecmaVersion: 2021,
},
extends: [
'plugin:vue/vue3-recommended',
'eslint:recommended',
'@vue/typescript/recommended',
],
rules: {
'@typescript-eslint/ban-types': [
'error',
{
extendDefaults: true,
types: {
Function: false,
},
},
],
'vue/no-unused-components': ['warn'],
'@typescript-eslint/ban-ts-comment': ['off'],
'@typescript-eslint/no-explicit-any': ['off'],
'vue/require-default-prop': ['off'],
'@typescript-eslint/no-empty-function': ['off'],
'@typescript-eslint/no-non-null-assertion': ['off'],
'@typescript-eslint/no-non-null-asserted-optional-chain': ['off'],
'vue/no-v-html': ['off'],
},
}