Skip to content

Commit

Permalink
📝 Typoo
Browse files Browse the repository at this point in the history
  • Loading branch information
KenAJoh committed Jan 9, 2025
1 parent 7c5c238 commit f29625b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/eslint/import-check.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = {
create(context) {
return {
ImportDeclaration(node) {
const usNavikt = node.source.value.startsWith("@navikt");
const isNavikt = node.source.value.startsWith("@navikt");
const isReact = node.source.value === "react";
const isInlineParts = node.source.value.includes("__parts");
const isExampleHOC =
Expand Down Expand Up @@ -30,7 +30,7 @@ module.exports = {
"When using 'withDsExample'-HOC, import must be '@/web/examples/withDsExample'",
});
} else if (
!usNavikt &&
!isNavikt &&
!isReact &&
!isInlineParts &&
!isExampleHOC &&
Expand Down

0 comments on commit f29625b

Please sign in to comment.