28 lines
734 B
JavaScript
28 lines
734 B
JavaScript
module.exports = {
|
|
root: true,
|
|
globals: {
|
|
defineEmits: 'readonly',
|
|
defineProps: 'readonly',
|
|
defineExpose: 'readonly',
|
|
defineOptions: 'readonly',
|
|
},
|
|
parser: 'vue-eslint-parser',
|
|
env: {
|
|
browser: true,
|
|
es6: true,
|
|
node: true,
|
|
},
|
|
extends: ['eslint:recommended', 'plugin:vue/vue3-essential'],
|
|
rules: {
|
|
'no-unused-vars': 'warn',
|
|
'no-var': 'error',
|
|
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
'space-before-function-paren': 'off',
|
|
'template-curly-spacing': 'off',
|
|
'comma-dangle': 'off',
|
|
eqeqeq: ['error', 'always'],
|
|
indent: 'off',
|
|
},
|
|
}
|