diff --git a/CHANGELOG.md b/CHANGELOG.md index 35681f4..4b45071 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ The following is a curated list of changes in the Enact eslint config: +## [unreleased] + +* Updated `@stylistic/js/space-before-function-paren` rule to fix conflicts with `prettier` rules. + ## [5.0.0-alpha.2] (December 6, 2024) * Replaced deprecated rule `no-new-object` with `no-object-constructor`. diff --git a/strict.js b/strict.js index 09becc5..46e898a 100644 --- a/strict.js +++ b/strict.js @@ -81,7 +81,14 @@ module.exports = { '@stylistic/js/linebreak-style': ['warn', 'unix'], '@stylistic/js/operator-linebreak': ['warn', 'after'], '@stylistic/js/space-before-blocks': ['warn', 'always'], - '@stylistic/js/space-before-function-paren': ['warn', 'always'], + '@stylistic/js/space-before-function-paren': [ + 'warn', + { + anonymous: 'always', + named: 'never', + asyncArrow: 'always' + } + ], '@stylistic/js/space-infix-ops': ['warn', { int32Hint: true }],