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 Jan 13, 2025
1 parent c81e830 commit e0624f4
Show file tree
Hide file tree
Showing 3 changed files with 5,213 additions and 3,151 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 @@ -63,6 +63,7 @@
"@vitejs/plugin-react-swc": "^3.7.2",
"@vitest/coverage-istanbul": "^2.1.8",
"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
Loading

0 comments on commit e0624f4

Please sign in to comment.