2021-12-10 14:11:49 +08:00
|
|
|
module.exports = {
|
|
|
|
root: true,
|
2021-12-14 15:53:30 +08:00
|
|
|
parser: 'vue-eslint-parser',
|
|
|
|
globals: {
|
|
|
|
postMessage: true
|
2021-12-10 14:11:49 +08:00
|
|
|
},
|
|
|
|
parserOptions: {
|
2021-12-14 15:53:30 +08:00
|
|
|
parser: '@typescript-eslint/parser',
|
|
|
|
sourceType: 'module',
|
|
|
|
ecmaFeatures: {
|
|
|
|
jsx: true,
|
2022-09-03 16:44:35 +08:00
|
|
|
tsx: true
|
|
|
|
}
|
2021-12-14 15:53:30 +08:00
|
|
|
},
|
|
|
|
env: {
|
|
|
|
node: true,
|
2022-09-03 16:44:35 +08:00
|
|
|
// The Follow config only works with eslint-plugin-vue v8.0.0+
|
|
|
|
'vue/setup-compiler-macros': true
|
2021-12-10 14:11:49 +08:00
|
|
|
},
|
2022-09-03 16:44:35 +08:00
|
|
|
extends: ['plugin:vue/vue3-essential', 'eslint:recommended'],
|
2021-12-10 14:11:49 +08:00
|
|
|
rules: {
|
2022-09-03 16:44:35 +08:00
|
|
|
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off'
|
|
|
|
}
|
|
|
|
}
|