Skip to content

Commit

Permalink
Merge branch 'v3.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
monkeyWie committed Sep 19, 2018
2 parents dc0a154 + e36de60 commit 85e8f2a
Show file tree
Hide file tree
Showing 26 changed files with 483 additions and 13,846 deletions.
44 changes: 0 additions & 44 deletions front/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,48 +16,4 @@ module.exports = {
parserOptions: {
parser: 'babel-eslint'
}
/*
rules: {
"prettier/prettier": [
"error",
{
singleQuote: true,
semi: false,
parser: "flow"
}
]
"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",
//强制使用单引号
quotes: [2, "single"],
//禁止给const变量赋值
"no-const-assign": "error",
//不能对var声明的变量使用delete操作符
"no-delete-var": "error",
//在创建对象字面量时不允许键重复 {a:1,a:1}
"no-dupe-keys": "error",
//函数参数不能重复
"no-dupe-args": "error",
//禁止使用eval
"no-eval": "error",
//禁止使用隐式eval
"no-implied-eval": "error",
//禁止不必要的分号
"no-extra-semi": "error",
//switch中的case标签不能重复
"no-duplicate-case": "error",
// 禁止 for 循环出现方向错误的循环,比如 for (i = 0; i < 10; i--)
"for-direction": "error",
//禁止混用tab和空格
"no-mixed-spaces-and-tabs": [2, false],
// 禁止将常量作为 if, for, while 里的测试条件,比如 if (true), for (;;),除非循环内部有 break 语句
"no-constant-condition": [
"error",
{
checkLoops: false
}
]
},
*/
}
2 changes: 2 additions & 0 deletions front/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ yarn-error.log*

.vscode/*
!.vscode/settings.json

package-lock.json
Loading

0 comments on commit 85e8f2a

Please sign in to comment.