Skip to content

Commit 11ede40

Browse files
committed
[eslint config] [base] [breaking] func-name-matching: enable considerPropertyDescriptor option
1 parent e257dee commit 11ede40

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ module.exports = {
8383
// requires function names to match the name of the variable or property to which they are
8484
// assigned
8585
// https://eslint.org/docs/rules/func-name-matching
86-
// TODO: semver-major (eslint 5): add considerPropertyDescriptor: true
8786
'func-name-matching': ['off', 'always', {
88-
includeCommonJSModuleExports: false
87+
includeCommonJSModuleExports: false,
88+
considerPropertyDescriptor: true,
8989
}],
9090

9191
// require function expressions to have a name

0 commit comments

Comments
 (0)