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

@@ -6,7 +6,7 @@ import prompts from 'prompts';
async function run() {
const username = await execAsync(
// eslint-disable-next-line rulesdir/typography
// eslint-disable-next-line actual/typography
"gh api user --jq '.login'",
'To avoid having to enter your username, consider installing the official GitHub CLI (https://github.com/cli/cli) and logging in with `gh auth login`.',
);