Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
integral-mall
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
integralMall
integral-mall
Commits
af274e95
Commit
af274e95
authored
Feb 28, 2019
by
damodmg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改eslint复杂度
parent
c7755430
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
.eslintrc.js
.eslintrc.js
+4
-3
No files found.
.eslintrc.js
View file @
af274e95
// https://eslint.org/docs/user-guide/configuring
module
.
exports
=
{
root
:
true
,
parserOptions
:
{
...
...
@@ -52,7 +53,7 @@ module.exports = {
'no-empty'
:
[
2
,
{
"allowEmptyCatch"
:
true
allowEmptyCatch
:
true
}
],
// 禁止将 catch 的第一个参数 error 重新赋值 【重新赋值,error将没有意义】
...
...
@@ -84,9 +85,9 @@ module.exports = {
*/
// 禁止函数的循环复杂度超过 20,【https://en.wikipedia.org/wiki/Cyclomatic_complexity】
complexity
:
[
2
,
0
,
{
"max"
:
20
max
:
20
}
],
// 不允许有空函数,除非是将一个空函数设置为某个项的默认值 【否则空函数并没有实际意义】
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment