mirror of
https://gitee.com/dromara/go-view.git
synced 2024-12-05 21:28:43 +08:00
26 lines
618 B
JavaScript
26 lines
618 B
JavaScript
module.exports = {
|
|
root: true,
|
|
parser: 'vue-eslint-parser',
|
|
globals: {
|
|
postMessage: true
|
|
},
|
|
parserOptions: {
|
|
parser: '@typescript-eslint/parser',
|
|
sourceType: 'module',
|
|
ecmaFeatures: {
|
|
jsx: true,
|
|
tsx: true
|
|
}
|
|
},
|
|
env: {
|
|
node: true,
|
|
// The Follow config only works with eslint-plugin-vue v8.0.0+
|
|
'vue/setup-compiler-macros': true
|
|
},
|
|
extends: ['plugin:vue/vue3-essential', 'eslint:recommended'],
|
|
rules: {
|
|
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off'
|
|
}
|
|
}
|