Skip to content

Commit

Permalink
Add eslint rules for i18next and prevent adding string literals in JSX
Browse files Browse the repository at this point in the history
  • Loading branch information
praneshg239 committed Dec 10, 2024
1 parent 33efa2c commit 88b876f
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
"plugin:import/typescript",
"plugin:@typescript-eslint/recommended",

"plugin:i18next/recommended",

"plugin:react/recommended",
"plugin:react-hooks/recommended",

Expand Down
1 change: 1 addition & 0 deletions apps/gitness/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react-swc": "^3.5.0",
"eslint": "^8.57.1",
"eslint-plugin-i18next": "^6.1.1",
"eslint-plugin-react-hooks": "^5.1.0-rc.0",
"eslint-plugin-react-refresh": "^0.4.9",
"globals": "^15.9.0",
Expand Down
24 changes: 21 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 88b876f

Please sign in to comment.