Skip to content

Commit 6929b22

Browse files
authored
docs(space-before-function-paren): remove outdated info (#837)
1 parent 7240084 commit 6929b22

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

packages/eslint-plugin/rules/space-before-function-paren/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ This rule has a string option or an object option:
4949
- `always` (default) requires a space followed by the `(` of arguments.
5050
- `never` disallows any space followed by the `(` of arguments.
5151

52-
The string option does not check async arrow function expressions for backward compatibility.
53-
5452
You can also use a separate option for each type of function.
5553
Each of the following options can be set to `"always"`, `"never"`, or `"ignore"`. The default is `"always"`.
5654

packages/eslint-plugin/rules/space-before-function-paren/space-before-function-paren.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,8 @@ export default createRule<RuleOptions, MessageIds>({
110110
}
111111
else if (isNamedFunction(node)) {
112112
return overrideConfig.named ?? baseConfig
113-
114-
// `generator-star-spacing` should warn anonymous generators. E.g. `function* () {}`
115113
}
114+
// `generator-star-spacing` should warn anonymous generators. E.g. `function* () {}`
116115
else if (!node.generator) {
117116
return overrideConfig.anonymous ?? baseConfig
118117
}

0 commit comments

Comments
 (0)