当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 2 Fork 0

nienie0714 / ShoppingMall
暂停

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.eslintrc 1.28 KB
一键复制 编辑 原始数据 按行查看 历史
nienie0714 提交于 2018-04-22 14:41 . init
{
"env": {
"browser": true
},
"globals": {
"window": true
},
"rules": {
"eqeqeq": 2,//必须使用全等
"brace-style": [2, "1tbs"], //大括号风格
"quotes": [2, "single"], // 强制使用单引号
"semi": [2, "always"], //分号结尾
"no-extra-semi": 2,//多余分号
"default-case": 2,//switch语句最后必须有default
"block-scoped-var": 0, /// 在块级作用域外访问块内定义的变量是否报错提示
"comma-dangle": [2, "never"], // 数组和对象键值对最后一个逗号, never参数:不能带末尾的逗号, always参数:必须带末尾的逗号
"comma-style": [2, "last"], // 控制逗号在行尾出现还是在行首出现
"space-infix-ops": 2,//中缀左右必须空格
"space-before-function-paren": [2, "never"],//函数定义时括号前面不要有空格
"space-before-blocks": [2, "always"],//不以新行开始的块{前面要不要有空格
"comma-spacing": [2, {"before": false, "after": true}], // 控制逗号前后的空格
"key-spacing": [2, { "beforeColon": false, "afterColon": true }],//对象字面量中冒号的前后空格
"space-after-keywords": "off",
"keyword-spacing": [2, {"before": true, "after": true}]//关键字后面是否要空一格
}
}
HTML/CSS
1
https://gitee.com/nienie0714/nie-firstweb.git
git@gitee.com:nienie0714/nie-firstweb.git
nienie0714
nie-firstweb
ShoppingMall
master

搜索帮助