2022-03-17 11:50:19 +08:00
|
|
|
// const isProduction = (process.env.NODE_ENV === 'production');
|
|
|
|
|
2021-05-22 18:13:49 +08:00
|
|
|
module.exports = {
|
|
|
|
root: true,
|
|
|
|
env: {
|
2022-03-17 11:50:19 +08:00
|
|
|
node: true,
|
2021-05-22 18:13:49 +08:00
|
|
|
},
|
|
|
|
extends: [
|
|
|
|
'plugin:vue/recommended',
|
2022-03-17 11:50:19 +08:00
|
|
|
'eslint:recommended',
|
2021-05-22 18:13:49 +08:00
|
|
|
],
|
|
|
|
parserOptions: {
|
2022-03-17 11:50:19 +08:00
|
|
|
parser: '@babel/eslint-parser',
|
2021-05-22 18:13:49 +08:00
|
|
|
},
|
|
|
|
rules: {
|
2022-03-17 11:50:19 +08:00
|
|
|
// 'no-console': (isProduction ? 'warn' : 'off'),
|
|
|
|
// 'no-debugger': (isProduction ? 'warn' : 'off'),
|
2021-05-22 18:13:49 +08:00
|
|
|
'vue/html-closing-bracket-newline': 'off',
|
|
|
|
'vue/html-indent': 'off',
|
|
|
|
'vue/html-self-closing': 'off',
|
|
|
|
'vue/max-attributes-per-line': 'off',
|
|
|
|
'vue/multiline-html-element-content-newline': 'off',
|
2021-11-07 11:52:41 +08:00
|
|
|
'vue/no-v-html': 'off',
|
2022-03-17 11:50:19 +08:00
|
|
|
'vue/singleline-html-element-content-newline': 'off',
|
2021-05-22 18:13:49 +08:00
|
|
|
}
|
|
|
|
};
|