diff --git a/demo/test/snapshots/linting-config.test.js.md b/demo/test/snapshots/linting-config.test.js.md index 518a0eb..1f5ce00 100644 --- a/demo/test/snapshots/linting-config.test.js.md +++ b/demo/test/snapshots/linting-config.test.js.md @@ -2688,7 +2688,7 @@ Generated by [AVA](https://ava.li). ],␊ "sonarjs/cognitive-complexity": [␊ "warn",␊ - 50␊ + 25␊ ],␊ "sonarjs/max-switch-cases": [␊ "warn",␊ diff --git a/demo/test/snapshots/linting-config.test.js.snap b/demo/test/snapshots/linting-config.test.js.snap index 1fd2fae..9e28a42 100644 Binary files a/demo/test/snapshots/linting-config.test.js.snap and b/demo/test/snapshots/linting-config.test.js.snap differ diff --git a/es6.js b/es6.js index 6fd58fc..b1724d0 100644 --- a/es6.js +++ b/es6.js @@ -40,7 +40,7 @@ module.exports = { 'promise/no-return-in-finally': 'warn', 'promise/valid-params': 'warn', - 'sonarjs/cognitive-complexity': ['warn', 50], + 'sonarjs/cognitive-complexity': ['warn', 25], // sonarjs/elseif-without-else 'sonarjs/max-switch-cases': ['warn', 10], 'sonarjs/no-all-duplicated-branches': 'warn', @@ -100,7 +100,7 @@ module.exports = { rules: { 'no-alert': 'off', 'no-console': 'off', - 'sonarjs/cognitive-complexity': 'off', + 'sonarjs/cognitive-complexity': ['warn', 50], 'sonarjs/no-duplicate-string': 'off', 'sonarjs/no-identical-functions': 'off', 'test-selectors/anchor': 'off', diff --git a/package.json b/package.json index d9a1a8e..cf4de21 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eslint-config-tree", - "version": "6.0.0-alpha.1", + "version": "6.0.0-alpha.2", "description": "Shared Tree configuration that contains overrides and enhancements on top of the base frontier configuration.", "main": "index.js", "repository": {