1 Star 0 Fork 0

Melody/base-js

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.eslintrc.js 869 Bytes
一键复制 编辑 原始数据 按行查看 历史
Melody 提交于 2023-02-14 11:01 +08:00 . 首次提交
module.exports = {
parserOptions: {
ecmaVersion: 8,
sourceType: "module",
ecmaFeatures: {
jsx: true,
experimentalObjectRestSpread: true,
},
},
env: {
es6: true,
browser: true,
node: true,
mocha: true,
},
extends: ["eslint:recommended", "plugin:react/recommended"],
rules: {
"react/prop-types": 0,
"no-unused-vars": 1,
"no-multiple-empty-lines": ["error", { max: 1 }],
"no-var": 2, // 禁止使用 var 声明变量
"prefer-rest-params": 2, // 要求使用剩余参数而不是 arguments
eqeqeq: 2, // 强制使用 === 和 !==
"no-multi-spaces": 1, // 禁止使用多个空格
"default-case": 1, // 要求 switch 语句中有 default 分支
"no-dupe-args": 2, // 禁止 function 定义中出现重名参数
},
settings: {
react: {
version: "detect",
},
},
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/arcsiny/base-js.git
git@gitee.com:arcsiny/base-js.git
arcsiny
base-js
base-js
master

搜索帮助