From 7426e5d80bcd55325fffba2ab7f9efb85f163c1d Mon Sep 17 00:00:00 2001 From: Danila Poyarkov Date: Mon, 6 Apr 2026 23:30:38 +0300 Subject: [PATCH] Fix no-hand-rolled-color lint rule to match color/index.ts --- lint/plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lint/plugin.js b/lint/plugin.js index d0c362b8d..b770c39ee 100644 --- a/lint/plugin.js +++ b/lint/plugin.js @@ -130,7 +130,7 @@ const noHandRolledColor = { }, create(context) { const file = context.filename ?? context.getFilename?.() - if (file?.endsWith('color.ts') || file?.endsWith('color.js')) return {} + if (file?.includes('/color') && /(?:color\.ts|color\/index\.ts)$/.test(file)) return {} return { TemplateLiteral(node) {