Skip to content

Commit

Permalink
close new cap
Browse files Browse the repository at this point in the history
  • Loading branch information
xyhxx committed May 5, 2022
1 parent 6b5809d commit b8a8ac8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions base-js.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ module.exports = {
"max-depth": [0, 4], //嵌套块深度
"max-nested-callbacks": [0, 2], //回调嵌套深度
"max-statements": [0, 10], //函数内最多有几个声明
"new-cap": 2, //函数名首行大写必须使用new方式调用,首行小写必须用不带new方式调用
"new-cap": 0, //函数名首行大写必须使用new方式调用,首行小写必须用不带new方式调用
"new-parens": 0, //new时必须加小括号
"newline-after-var": 0, //变量声明后是否需要空一行
"object-curly-spacing": [0, "never"], //大括号内是否允许不必要的空格
Expand All @@ -235,7 +235,7 @@ module.exports = {
"prefer-reflect": 0, //首选Reflect的方法
quotes: [1, "single"], //引号类型 `` "" ''
"quote-props": 0, //对象字面量中的属性名是否强制双引号
radix: 2, //parseInt必须指定第二个参数
radix: 0, //parseInt必须指定第二个参数
"id-match": 0, //命名检测
"require-yield": 0, //生成器函数必须有yield
semi: [2, "always"], //语句强制分号结尾
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "eslint-config-proste",
"description": "preset eslint config",
"version": "2.9.0",
"version": "2.10.0",
"repository": "https://github.com/xyhxx/proste-eslint-config.git",
"author": "xyh <[email protected]>",
"license": "MIT",
Expand Down

0 comments on commit b8a8ac8

Please sign in to comment.