添加新的需求
This commit is contained in:
49
pc-cattle-transportation/.eslintrc.cjs
Normal file
49
pc-cattle-transportation/.eslintrc.cjs
Normal file
@@ -0,0 +1,49 @@
|
||||
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']
|
||||
|
||||
// }
|
||||
// }
|
||||
Reference in New Issue
Block a user