File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 65
65
"varsIgnorePattern" : " ^_$"
66
66
}
67
67
],
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
+ ]
69
80
}
70
81
}
Original file line number Diff line number Diff line change 1
1
import i18n , { Resource } from "i18next"
2
+ // eslint-disable-next-line no-restricted-imports
2
3
import { initReactI18next } from "react-i18next"
3
4
4
5
export const baseLocales = {
Original file line number Diff line number Diff line change
1
+ // eslint-disable-next-line no-restricted-imports
1
2
import { getI18n } from "react-i18next"
2
3
3
4
import { ns as exposedNs } from "./i18next"
You can’t perform that action at this time.
0 commit comments