Skip to content

Commit 254b3d1

Browse files
committed
Install eslint-plugin-i18next
1 parent 26fd11b commit 254b3d1

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

eslint.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import jestDom from 'eslint-plugin-jest-dom';
88
import jsxA11y from 'eslint-plugin-jsx-a11y';
99
import reactPlugin from 'eslint-plugin-react';
1010
import reactHooks from 'eslint-plugin-react-hooks';
11+
import i18next from 'eslint-plugin-i18next';
1112

1213
const flat = typescriptEslint.config(
1314
eslint.configs.recommended,
@@ -264,6 +265,10 @@ const flatReact = [
264265
files: ['**/*.{test,spec}.{ts,tsx}'],
265266
...jestDom.configs['flat/recommended'],
266267
},
268+
{
269+
ignores: ['**/*.cy.tsx'],
270+
...i18next.configs['flat/recommended'],
271+
},
267272
];
268273

269274
const config = [...flat, ...flatReact];

package-lock.json

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
"cypress": "^14.1.0",
8181
"eslint-config-prettier": "^10.1.1",
8282
"eslint-import-resolver-typescript": "^4.1.1",
83+
"eslint-plugin-i18next": "^6.1.3",
8384
"eslint-plugin-import": "^2.31.0",
8485
"eslint-plugin-jest-dom": "5.5.0",
8586
"eslint-plugin-jsx-a11y": "^6.10.2",

0 commit comments

Comments
 (0)