1 Star 0 Fork 0

曹恒星/LPlayer

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.eslintrc.js 1.42 KB
一键复制 编辑 原始数据 按行查看 历史
曹恒星 提交于 2019-09-06 15:39 . first commit
module.exports = {
root: true,
parserOptions: {
parser: "babel-eslint",
sourceType: "module"
},
env: {
browser: true,
node: true,
es6: true
},
extends: ["airbnb-base"],
rules: {
// error
"func-style": ["error", "declaration", { allowArrowFunctions: true }],
quotes: ["error", "single", { allowTemplateLiterals: true }],
semi: ["error", "never"],
// warn
"import/first": "warn", // import 放在文件头
"spaced-comment": "warn", // 注释要含有空格
camelcase: "warn", // 驼峰命名
"max-len": ["warn", { code: 150 }],
"operator-assignment": "warn",
"prefer-destructuring": "warn",
"prefer-template": "warn",
"eol-last": "warn",
"object-curly-spacing": "warn",
"no-return-assign": "warn",
// off
"no-underscore-dangle": "off",
"object-curly-newline": "off",
"comma-dangle": "off",
"linebreak-style": "off",
"no-restricted-syntax": "off",
radix: "off",
"consistent-return": "off",
"no-plusplus": "off",
"import/prefer-default-export": "off",
"arrow-parens": "off",
"no-console": process.env.NODE_ENV === "production" ? "error" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off",
"no-alert": process.env.NODE_ENV === "production" ? "error" : "off",
indent: [
2,
2,
{
SwitchCase: 1
}
],
"import/no-named-as-default": "off"
}
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/kyo_niuniu/LPlayer.git
git@gitee.com:kyo_niuniu/LPlayer.git
kyo_niuniu
LPlayer
LPlayer
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385