Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Mar 6, 2022
1 parent e8d6875 commit def2bc7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/config/plugin/lib/shape.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getDummyRules } from '../../normalize/dummy.js'
import { parent } from '../../normalize/lib/star_dot_path/main.js'
import { equals, parent } from '../../normalize/lib/star_dot_path/main.js'
import { validateDefinedString } from '../../normalize/validate/simple.js'

import { PluginError, UserError, CoreError } from './error.js'
Expand Down Expand Up @@ -95,9 +95,9 @@ const configPropName = {
}

const isSharedProp = function (name, sharedPropNames) {
return (
sharedPropNames.includes(name) ||
sharedPropNames.some((sharedPropName) => parent(name, sharedPropName))
return sharedPropNames.some(
(sharedPropName) =>
equals(name, sharedPropName) || parent(name, sharedPropName),
)
}

Expand Down

0 comments on commit def2bc7

Please sign in to comment.