Skip to content

Commit 9ef7894

Browse files
committed
lint i18n
1 parent b76c48f commit 9ef7894

File tree

3 files changed

+32
-1
lines changed

3 files changed

+32
-1
lines changed

eslint.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import globals from 'globals'
22
import pluginJs from '@eslint/js'
33
import tseslint from 'typescript-eslint'
44
import pluginReact from 'eslint-plugin-react'
5+
import i18next from 'eslint-plugin-i18next';
56
import eslintConfigPrettier from "eslint-config-prettier"
67
// import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'
78

@@ -12,6 +13,7 @@ export default [
1213
...tseslint.configs.recommended,
1314
pluginReact.configs.flat['jsx-runtime'],
1415
eslintConfigPrettier,
16+
i18next.configs['flat/recommended'],
1517
// eslintPluginPrettierRecommended,
1618
{
1719
rules: {

package-lock.json

Lines changed: 26 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: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"build": "vite build",
1616
"prepare": "husky install",
1717
"test:e2e": "playwright test",
18-
"test:record": "playwright codegen -o e2e/recorded.spec.ts localhost:3000"
18+
"test:record": "playwright codegen -o e2e/recorded.spec.ts localhost:3000",
19+
"translations": "node scripts/analyzeTranslations.js"
1920
},
2021
"repository": {
2122
"type": "git",
@@ -53,10 +54,12 @@
5354
"concurrently": "^9.0.0",
5455
"eslint": "^9.13.0",
5556
"eslint-config-prettier": "^9.1.0",
57+
"eslint-plugin-i18next": "^6.1.2",
5658
"eslint-plugin-prettier": "^5.2.1",
5759
"eslint-plugin-react": "^7.37.2",
5860
"husky": "^9.0.10",
5961
"lint-staged": "^15.2.1",
62+
"minimist": "^1.2.8",
6063
"prettier": "^3.2.5",
6164
"sequelize-cli": "^6.6.2",
6265
"tsx": "4.19.4",

0 commit comments

Comments
 (0)