Skip to content

Commit 5155aa5

Browse files
haoqunjiangljharb
authored andcommitted
[eslint config] [base] disable the deprecated no-spaced-func rule
This rule was deprecated since ESLint v3.3.0 and replaced by the `func-call-spacing` rule. https://eslint.org/docs/latest/rules/no-spaced-func `func-call-spacing` was enabled in this package long ago: airbnb@27dcb99 So there's no need for it to stay in the ruleset. Besides, it is causing some tricky issues when overriding the rules for TypeScript support (iamturns/eslint-config-airbnb-typescript#246)
1 parent cbf9ade commit 5155aa5

File tree

1 file changed

+2
-1
lines changed
  • packages/eslint-config-airbnb-base/rules

1 file changed

+2
-1
lines changed

packages/eslint-config-airbnb-base/rules/style.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,8 @@ module.exports = {
351351
],
352352

353353
// disallow space between function identifier and application
354-
'no-spaced-func': 'error',
354+
// deprecated in favor of func-call-spacing
355+
'no-spaced-func': 'off',
355356

356357
// disallow tab characters entirely
357358
'no-tabs': 'error',

0 commit comments

Comments
 (0)