forked from github/dataease
41 lines
875 B
JavaScript
41 lines
875 B
JavaScript
module.exports = {
|
|
env: {
|
|
browser: true,
|
|
es2021: true,
|
|
node: true
|
|
},
|
|
extends: [
|
|
'prettier',
|
|
'plugin:vue/vue3-essential',
|
|
'plugin:@typescript-eslint/recommended',
|
|
'plugin:prettier/recommended' // 解决ESlint和Prettier冲突
|
|
],
|
|
overrides: [],
|
|
// 配置解析vue文件
|
|
parser: 'vue-eslint-parser',
|
|
parserOptions: {
|
|
ecmaVersion: 'latest',
|
|
parser: '@typescript-eslint/parser',
|
|
sourceType: 'module',
|
|
jsxPragma: 'React',
|
|
ecmaFeatures: {
|
|
jsx: true
|
|
}
|
|
},
|
|
plugins: ['vue', '@typescript-eslint'],
|
|
rules: {
|
|
'@typescript-eslint/ban-types': [
|
|
'error',
|
|
{
|
|
extendDefaults: true,
|
|
types: {
|
|
'{}': false
|
|
}
|
|
}
|
|
],
|
|
'vue/multi-word-component-names': 0,
|
|
'@typescript-eslint/no-explicit-any': ['off'],
|
|
'vue/no-setup-props-destructure': ['off']
|
|
}
|
|
}
|