Tighten up eslint rule to catch unused const {_} = useLingui() (#9122)

* tighten eslint config to catch unused `useLingui`s

* fix now-invalid uses of _

* remove unused function that produces a ton of eslint warnings

* upgrade react compiler plugin
This commit is contained in:
Samuel Newman
2025-10-02 19:59:05 +03:00
committed by GitHub
parent 02b189a40e
commit 77bf49f212
19 changed files with 29 additions and 64 deletions
@@ -116,7 +116,6 @@ function EditImageInner({
}) {
const t = useTheme()
const [isDragging, setIsDragging] = useState(false)
const {_} = useLingui()
const control = Dialog.useDialogContext()
const source = image.source
@@ -30,7 +30,7 @@ function getDecorations(doc: ProsemirrorNode) {
let match
while ((match = regex.exec(textContent))) {
const [matchedString, _, tag] = match
const [matchedString, __, tag] = match
if (!tag || tag.replace(TRAILING_PUNCTUATION_REGEX, '').length > 64)
continue
+1 -1
View File
@@ -126,7 +126,7 @@ function FeedgenErrorMessage({
})[knownError],
[_l, knownError],
)
const [_, uri] = feedDesc.split('|')
const [__, uri] = feedDesc.split('|')
const [ownerDid] = safeParseFeedgenUri(uri)
const removePromptControl = Prompt.usePromptControl()
const {mutateAsync: removeFeed} = useRemoveFeedMutation()