add some basic linting rules for translation consistency (#5212)

* lint rules

* trans rule

* migrate away from rulesDir config

* fixes

* prefer Trans to t()

* typechecker

* cleanup

* note

* typo

* extend regex to include punctuation

* extend fixer to handle imports

* autofixes from punctuation
This commit is contained in:
Matt Fiddaman
2025-07-04 15:17:17 -04:00
committed by GitHub
parent 80bb4ab299
commit 2d95fe6d03
65 changed files with 490 additions and 190 deletions

View File

@@ -7623,7 +7623,6 @@ __metadata:
eslint-plugin-jsx-a11y: "npm:^6.10.2"
eslint-plugin-react: "npm:^7.37.5"
eslint-plugin-react-hooks: "npm:^5.2.0"
eslint-plugin-rulesdir: "npm:^0.2.2"
eslint-plugin-typescript-paths: "npm:^0.0.33"
globals: "npm:^15.15.0"
html-to-image: "npm:^1.11.13"
@@ -10959,13 +10958,6 @@ __metadata:
languageName: node
linkType: hard
"eslint-plugin-rulesdir@npm:^0.2.2":
version: 0.2.2
resolution: "eslint-plugin-rulesdir@npm:0.2.2"
checksum: 10/aac282554e5eb5b1fb3944dd43a08be5fd3e0bc33a00738f525df08344bc1d54f4abe3303118582d86776b3146ddb9e09d3fd1af502d484b3354da2bfee2ce24
languageName: node
linkType: hard
"eslint-plugin-typescript-paths@npm:^0.0.33":
version: 0.0.33
resolution: "eslint-plugin-typescript-paths@npm:0.0.33"