Skip to content

Commit

Permalink
Merge pull request #14029 from ethereum/import-warning
Browse files Browse the repository at this point in the history
Import warning
  • Loading branch information
wackerow authored Oct 3, 2024
2 parents 8dc3691 + 3f85305 commit dfe8d57
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,17 @@
"varsIgnorePattern": "^_$"
}
],
"unused-imports/no-unused-imports-ts": "warn"
"unused-imports/no-unused-imports-ts": "warn",
"no-restricted-imports": [
"warn",
{
"paths": [
{
"name": "react-i18next",
"message": "Please use next-i18next instead of react-i18next."
}
]
}
]
}
}
1 change: 1 addition & 0 deletions .storybook/i18next.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import i18n, { Resource } from "i18next"
// eslint-disable-next-line no-restricted-imports
import { initReactI18next } from "react-i18next"

export const baseLocales = {
Expand Down
1 change: 1 addition & 0 deletions .storybook/utils.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// eslint-disable-next-line no-restricted-imports
import { getI18n } from "react-i18next"

import { ns as exposedNs } from "./i18next"
Expand Down

0 comments on commit dfe8d57

Please sign in to comment.