mirror of https://github.com/stilleshan/subweb.git
22 lines
536 B
JavaScript
22 lines
536 B
JavaScript
module.exports = {
|
|
root: true,
|
|
env: {
|
|
node: true,
|
|
'vue/setup-compiler-macros': true,
|
|
},
|
|
extends: [
|
|
'plugin:vue/vue3-essential',
|
|
'eslint:recommended',
|
|
'@vue/prettier', //使用 prettier airbnb standard
|
|
],
|
|
parserOptions: {
|
|
parser: '@babel/eslint-parser',
|
|
requireConfigFile: false,
|
|
},
|
|
rules: {
|
|
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
// 'max-len': ['error', { code: 120 }],
|
|
},
|
|
};
|