summaryrefslogtreecommitdiff
path: root/apps/web/eslint-rules
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-02-10 00:12:25 -0800
committerFuwn <[email protected]>2026-02-10 00:12:25 -0800
commit32219ec9656e7f46e516c7c41c133133d008e9a4 (patch)
treee335fa4b2e32f562b0861cd02a1abe618e8cb6b9 /apps/web/eslint-rules
parentfix: P2 security hardening and tier limit parity (diff)
downloadasa.news-32219ec9656e7f46e516c7c41c133133d008e9a4.tar.xz
asa.news-32219ec9656e7f46e516c7c41c133133d008e9a4.zip
fix: reduce lint warnings from 34 to 0
Disable no-img-element (RSS reader needs <img> for arbitrary external URLs). Remove unused variables/imports and redundant getUser() calls guarded by middleware. Fix exhaustive-deps by adding stable deps, wrapping handlers in useCallback, and suppressing intentional omissions. Fix ref cleanup in use-realtime-entries. Allow triple-slash TS reference directives in no-comments rule.
Diffstat (limited to 'apps/web/eslint-rules')
-rw-r--r--apps/web/eslint-rules/no-comments.mjs1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/web/eslint-rules/no-comments.mjs b/apps/web/eslint-rules/no-comments.mjs
index 7efafae..1a30c8c 100644
--- a/apps/web/eslint-rules/no-comments.mjs
+++ b/apps/web/eslint-rules/no-comments.mjs
@@ -13,6 +13,7 @@ const DIRECTIVE_PATTERNS = [
/^\s*@typedef\s/,
/^\s*prettier-ignore/,
/^\s*webpackChunkName/,
+ /^\s*\/ <reference /,
]
function isDirectiveComment(value) {