From 671a0e68532bea2320b1cab7f7e0a37ea09d7041 Mon Sep 17 00:00:00 2001 From: Boutils Date: Thu, 2 Apr 2020 18:58:07 +0200 Subject: [PATCH 1/4] Update `space-before-function-paren`to `always` --- lib/configs/recommended.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/configs/recommended.js b/lib/configs/recommended.js index fc73b26..4e04973 100644 --- a/lib/configs/recommended.js +++ b/lib/configs/recommended.js @@ -86,11 +86,7 @@ module.exports = { 'block-spacing' : 2, 'no-whitespace-before-property' : 2, 'space-before-blocks' : 2, - 'space-before-function-paren' : ["error", { - "anonymous" : "never", - "named" : "never", - "asyncArrow" : "always" - }], + 'space-before-function-paren' : ["error", "always"], 'space-infix-ops' : 2, 'space-unary-ops' : 2, 'func-call-spacing' : 2, From 950e037f2a9b68b775f272c2f9be5103cb219e3c Mon Sep 17 00:00:00 2001 From: Boutils Date: Thu, 2 Apr 2020 19:37:30 +0200 Subject: [PATCH 2/4] Update `space-before-function-paren` and `comma-dangle` --- lib/configs/recommended.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/lib/configs/recommended.js b/lib/configs/recommended.js index 4e04973..d83778f 100644 --- a/lib/configs/recommended.js +++ b/lib/configs/recommended.js @@ -86,12 +86,22 @@ module.exports = { 'block-spacing' : 2, 'no-whitespace-before-property' : 2, 'space-before-blocks' : 2, - 'space-before-function-paren' : ["error", "always"], + 'space-before-function-paren' : ["error", { + "anonymous" : "always", + "named" : "never", + "asyncArrow" : "always" + }], 'space-infix-ops' : 2, 'space-unary-ops' : 2, 'func-call-spacing' : 2, 'keyword-spacing' : 2, - 'comma-dangle' : 1, + 'comma-dangle' : ["error", { + "arrays": "always-multiline", + "objects": "always-multiline", + "imports": "always-multiline", + "exports": "always-multiline", + "functions": "only-multiline" + }], 'linebreak-style' : [2, 'unix'], 'semi' : [2, 'always'], 'no-restricted-syntax' : [2, 'ForInStatement'], From 9dcaf41701ea5abbf0c3013a065daaff10f3e062 Mon Sep 17 00:00:00 2001 From: Boutils Date: Thu, 2 Apr 2020 19:41:47 +0200 Subject: [PATCH 3/4] No comma-dangle for functions --- lib/configs/recommended.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/configs/recommended.js b/lib/configs/recommended.js index d83778f..4499d4b 100644 --- a/lib/configs/recommended.js +++ b/lib/configs/recommended.js @@ -100,7 +100,7 @@ module.exports = { "objects": "always-multiline", "imports": "always-multiline", "exports": "always-multiline", - "functions": "only-multiline" + "functions": "never" }], 'linebreak-style' : [2, 'unix'], 'semi' : [2, 'always'], From 19819a18de36a51423590a9c5d811a0635fb85f7 Mon Sep 17 00:00:00 2001 From: Boutils Date: Thu, 2 Apr 2020 19:45:50 +0200 Subject: [PATCH 4/4] Release 4.4.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ae1032f..d2262d1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eslint-plugin-stoic", - "version": "4.3.0", + "version": "4.4.0", "description": "ESLint plugin to rule them all", "keywords": [ "eslint",