36 lines
981 B
JavaScript
36 lines
981 B
JavaScript
module.exports = {
|
|
root: true,
|
|
env: {
|
|
node: true
|
|
},
|
|
extends: [
|
|
'plugin:vue/essential',
|
|
'@vue/standard',
|
|
'@vue/typescript/recommended'
|
|
],
|
|
parserOptions: {
|
|
ecmaVersion: 2020
|
|
},
|
|
rules: {
|
|
'space-before-function-paren': 'off',
|
|
'no-callback-literal': 0,
|
|
'arrow-parens': 0,
|
|
// allow async-await
|
|
'no-unused-vars': 0,
|
|
'generator-star-spacing': 'off',
|
|
'spaced-comment': 0,
|
|
'object-curly-spacing': 0,
|
|
'@typescript-eslint/no-empty-function': 0,
|
|
'@typescript-eslint/no-this-alias': 0,
|
|
'@typescript-eslint/no-var-requires': 0,
|
|
'prefer-const': 0,
|
|
'vue/no-parsing-error': [2, { 'x-invalid-end-tag': false }],
|
|
camelcase: 0,
|
|
// 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
'no-undef-init': 0,
|
|
'no-useless-call': 0,
|
|
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off'
|
|
}
|
|
}
|