Skip to content

Commit dfe8d57

Browse files
authored
Merge pull request #14029 from ethereum/import-warning
Import warning
2 parents 8dc3691 + 3f85305 commit dfe8d57

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

.eslintrc.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,17 @@
6565
"varsIgnorePattern": "^_$"
6666
}
6767
],
68-
"unused-imports/no-unused-imports-ts": "warn"
68+
"unused-imports/no-unused-imports-ts": "warn",
69+
"no-restricted-imports": [
70+
"warn",
71+
{
72+
"paths": [
73+
{
74+
"name": "react-i18next",
75+
"message": "Please use next-i18next instead of react-i18next."
76+
}
77+
]
78+
}
79+
]
6980
}
7081
}

.storybook/i18next.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import i18n, { Resource } from "i18next"
2+
// eslint-disable-next-line no-restricted-imports
23
import { initReactI18next } from "react-i18next"
34

45
export const baseLocales = {

.storybook/utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// eslint-disable-next-line no-restricted-imports
12
import { getI18n } from "react-i18next"
23

34
import { ns as exposedNs } from "./i18next"

0 commit comments

Comments
 (0)