17 Star 156 Fork 57

舒小凯 / moyu-server

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.eslintrc.js 1.04 KB
一键复制 编辑 原始数据 按行查看 历史
舒小凯 提交于 2020-10-08 22:46 . init: 初始化项目
/*
作者: shuxiaokai
相关参考: https://cn.eslint.org/docs/rules
日期: 2019-05-04
最近更新:
*/
module.exports = {
root: true,
parser: "babel-eslint",
parserOptions: {
sourceType: "module",
},
env: {
browser: true,
node: true,
},
globals: {
__static: true,
},
plugins: ["html"],
rules: {
indent: [2, 4], //强制为4格缩进
quotes: [
2,
"double",
{
//强制双引号
avoidEscape: true,
allowTemplateLiterals: true,
},
],
"spaced-comment": "off", //注释后面可以没有空格
"space-before-function-paren": "off", //取消函数后面一致的空格
semi: "off", //末尾是否有分号不做限制
"comma-dangle": "off", //拖尾逗号不做限制
"no-trailing-spaces": "off", //允许存在额外空白换行
"no-multiple-empty-lines": "off", //允许多行空白
"dot-notation": "off",
},
};
JavaScript
1
https://gitee.com/shuzhikai/moyu-server.git
git@gitee.com:shuzhikai/moyu-server.git
shuzhikai
moyu-server
moyu-server
master

搜索帮助