Skip to content

Commit

Permalink
chore(lint): add func-name-matching ESLint rule
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Oct 15, 2020
1 parent c31f185 commit cc44ab9
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 @@ -27,6 +27,7 @@ module.exports = {
// nor standard JavaScript. However, they are still useful
'array-callback-return': [2, { allowImplicit: true, checkForEach: true }],
'multiline-comment-style': [2, 'separate-lines'],
'func-name-matching': [2, { considerPropertyDescriptor: true }],

// This version of eslint-plugin-unicorn requires Node 10
// TODO: remove after dropping Node 8 support
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 cc44ab9

Please sign in to comment.