Files
cattleTransportation/pc-cattle-transportation/.eslintrc.cjs
2025-10-20 17:32:09 +08:00

50 lines
1.3 KiB
JavaScript

module.exports = {
env: {
browser: true,
es2021: true
},
extends: [
'plugin:vue/essential',
'airbnb-base',
'plugin:prettier/recommended' // 添加 prettier 插件
],
parserOptions: {
ecmaVersion: 13,
parser: '@typescript-eslint/parser',
sourceType: 'module'
},
plugins: ['vue', '@typescript-eslint'],
rules: {
'import/no-unresolved': 'off',
'import/extensions': 'off',
'import/no-absolute-path': 'off',
'import/no-extraneous-dependencies': 'off',
'no-console': 'off'
}
};
// module.exports = {
// root: true,
// env: {
// node: true
// },
// extends: [
// 'plugin:vue/essential',
// '@vue/standard'
// ],
// parserOptions: {
// parser: 'babel-eslint'
// },
// rules: {
// // warn 警告 error 报红色错误 never 不要这个规范 always 必须按照这个规则
// 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
// 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
// // 方法的形参之前()必须保留一个空格
// 'space-before-function-paren': ['warn', 'never']
// }
// }