33 lines
777 B
JavaScript
33 lines
777 B
JavaScript
/* eslint-env node */
|
|
require('@rushstack/eslint-patch/modern-module-resolution')
|
|
|
|
module.exports = {
|
|
rules: {
|
|
// 忽略未使用的变量和参数
|
|
'@typescript-eslint/no-unused-vars': 'off',
|
|
'no-unused-vars': 'off',
|
|
|
|
// 或者设置为警告级别
|
|
// '@typescript-eslint/no-unused-vars': 'warn',
|
|
// 'no-unused-vars': 'warn',
|
|
|
|
// Vue 相关规则
|
|
'vue/multi-word-component-names': 'off',
|
|
'vue/no-unused-vars': 'off',
|
|
'vue/no-mutating-props': 'off',
|
|
'no-empty-pattern': 'off'
|
|
|
|
},
|
|
root: true,
|
|
'extends': [
|
|
'plugin:vue/vue3-essential',
|
|
'eslint:recommended',
|
|
'@vue/eslint-config-typescript',
|
|
'@vue/eslint-config-prettier/skip-formatting'
|
|
],
|
|
parserOptions: {
|
|
ecmaVersion: 'latest'
|
|
},
|
|
globals: { defineOptions: 'readonly' }
|
|
}
|