feat: add ESLint rule to prevent SVG imports as components

This commit is contained in:
dev.daminik00 2025-10-30 03:20:17 +01:00
parent 676607d4f6
commit a62702e273

View File

@ -102,6 +102,19 @@ const eslintConfig = [
"no-multiple-empty-lines": ["error", { max: 2 }],
"eol-last": "error",
"no-trailing-spaces": "error",
/* Запрет SVG импортов как компонентов */
"no-restricted-imports": [
"error",
{
patterns: [
{
group: ["*.svg"],
message: "❌ SVG импорты как компоненты ломаются в production. Используйте inline SVG или next/image.",
},
],
},
],
},
}, {
ignores: [