You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
502 B
21 lines
502 B
// .eslintrc.cjs
|
|
module.exports = {
|
|
env: {
|
|
browser: true,
|
|
es2021: true,
|
|
'vue/setup-compiler-macros': true
|
|
},
|
|
extends: [
|
|
'@vue/eslint-config-typescript', // 如果用了 TS
|
|
'plugin:vue/vue3-essential', // 或 vue3-recommended / vue3-strongly-recommended
|
|
'eslint:recommended'
|
|
],
|
|
parserOptions: {
|
|
ecmaVersion: 'latest',
|
|
sourceType: 'module'
|
|
},
|
|
plugins: ['vue'],
|
|
rules: {
|
|
// 自定义规则
|
|
}
|
|
}
|