klg-asutk-app/.eslintrc.json
Yuriy aa052763f6 Безопасность и качество: 8 исправлений + обновления
- .env.example: полный шаблон, защита секретов
- .gitignore: явное исключение .env.* и секретов
- layout.tsx: XSS — заменён dangerouslySetInnerHTML на next/script для SW
- ESLint: no-console error (allow warn/error), ignore scripts/
- scripts/remove-console-logs.js: очистка console.log без glob
- backend/routes/modules: README с планом рефакторинга крупных файлов
- SECURITY.md: гид по секретам, XSS, CORS, auth, линту
- .husky/pre-commit: запуск npm run lint

+ прочие правки приложения и бэкенда

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-14 21:29:16 +03:00

11 lines
319 B
JSON

{
"extends": ["next/core-web-vitals", "@typescript-eslint/recommended"],
"rules": {
"no-console": ["error", { "allow": ["warn", "error"] }],
"no-eval": "error",
"prefer-const": "error",
"max-lines": ["warn", { "max": 500 }]
},
"ignorePatterns": ["node_modules/", ".next/", "out/", "scripts/"]
}