From 519af1caef0c12f498cf14c17c3238db46594911 Mon Sep 17 00:00:00 2001 From: Simon Knott Date: Tue, 19 Jul 2022 10:12:38 +0200 Subject: [PATCH 1/2] refactor: make more obvious what's the max number --- .eslintrc.cjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 70245f18..3c3fd863 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -28,7 +28,7 @@ module.exports = { 'arrow-body-style': 2, 'block-scoped-var': 2, 'class-methods-use-this': 2, - complexity: [2, 5], + complexity: [2, { max: 5 }], 'consistent-this': 2, 'default-case': 2, 'default-param-last': 2, From f4e8b0559dc7582a4f30b4405113dbc5a6a88feb Mon Sep 17 00:00:00 2001 From: Simon Knott Date: Tue, 19 Jul 2022 10:13:39 +0200 Subject: [PATCH 2/2] feat!: double max complexity --- .eslintrc.cjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 3c3fd863..50070215 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -28,7 +28,7 @@ module.exports = { 'arrow-body-style': 2, 'block-scoped-var': 2, 'class-methods-use-this': 2, - complexity: [2, { max: 5 }], + complexity: [2, { max: 10 }], 'consistent-this': 2, 'default-case': 2, 'default-param-last': 2,