1 Star 0 Fork 19

Kevin_Yan/SPMS-Web

forked from S-PMS/SPMS-Web 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.eslintrc.js 1.52 KB
一键复制 编辑 原始数据 按行查看 历史
Hamm 提交于 2024-06-02 18:50 . fix(bugs): 修复了一些已知的BUG
module.exports = {
root: true,
globals: {
defineEmits: 'readonly',
defineProps: 'readonly',
},
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:vue/vue3-recommended',
'airbnb-base',
],
parserOptions: {
parser: '@typescript-eslint/parser',
ecmaVersion: 2020,
},
rules: {
indent: ['error', 2, {
SwitchCase: 1,
VariableDeclarator: {
var: 2, let: 2, const: 3,
},
MemberExpression: 1,
}],
'class-methods-use-this': 'off',
'import/named': 'off',
'max-len': 'off', // 强制一行的最大长度
'import/extensions': 'off', // 不验证导入文件扩展名
'vue/multi-word-component-names': 'off', // 不校验vue组件名称
'no-shadow': 'off', // 禁止变量声明与外层作用域的变量同名
'import/no-cycle': 'error', // 禁止一个模块导入一个有依赖路径的模块回到自己身上
semi: ['error', 'never'], // 不使用分号
eqeqeq: 'warn', // 要求使用 === 和 !==
'no-param-reassign': 'off', // 允许 function 的参数进行重新赋值
'import/prefer-default-export': 'off', // 禁用默认输出
'default-case': 'error', // switch 必须使用 default
'no-restricted-syntax': 'off', // 禁用特定的语法
'no-await-in-loop': 'error', // 禁止在循环中出现 await
'import/no-unresolved': 'off', // 确保导入指向一个可以解析的文件/模块
'@typescript-eslint/no-var-requires': 'off', // 允许require
'vue/no-setup-props-destructure': 'off',
},
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/kevin_yan/SPMS-Web.git
git@gitee.com:kevin_yan/SPMS-Web.git
kevin_yan
SPMS-Web
SPMS-Web
main

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385