Skip to content

Commit

Permalink
Add func-name-matching ESLint rule (#1402)
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky authored Oct 20, 2020
1 parent 1bb2f11 commit b8eabb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ module.exports = {
// Those ESLint rules are not enabled by Prettier, ESLint recommended rules
// nor standard JavaScript. However, they are still useful
'array-callback-return': [2, { allowImplicit: true, checkForEach: true }],
'func-name-matching': [2, { considerPropertyDescriptor: true }],
'multiline-comment-style': [2, 'separate-lines'],
'no-else-return': [2, { allowElseIf: false }],
'no-var': 2,
Expand Down
2 changes: 1 addition & 1 deletion src/utils/addons/validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports.missingConfigValues = function missingConfigValues(requiredConfig
})
}

module.exports.updateConfigValues = function missingConfigValues(allowedConfig, currentConfig, newConfig) {
module.exports.updateConfigValues = function updateConfigValues(allowedConfig, currentConfig, newConfig) {
return Object.keys(allowedConfig).reduce((acc, key) => {
if (newConfig[key]) {
acc[key] = newConfig[key]
Expand Down

0 comments on commit b8eabb3

Please sign in to comment.