Skip to content

Commit

Permalink
Use substring check for opticks importPath
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit88 committed Apr 2, 2024
1 parent a06b5d3 commit e9f9d54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/eslint-plugin/lib/rules/toggle.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ module.exports = {
ImportDeclaration: (node) => {
const importPath = node.source.value

if (importPath === 'opticks') {
if (importPath.includes('opticks')) {
node.specifiers.forEach((specifier) => {
if (specifier.imported.name === 'toggle') {
settings.isToggleImportedFromOpticks = true
Expand Down

0 comments on commit e9f9d54

Please sign in to comment.