ready for build

This commit is contained in:
2026-07-21 12:25:19 +03:30
parent 730e2d8ca8
commit 3486da6eeb
8 changed files with 172 additions and 199 deletions
+11 -10
View File
@@ -10,19 +10,20 @@ const compat = new FlatCompat({
});
const eslintConfig = [
...compat.extends("next/core-web-vitals", "next/typescript"),
...compat.extends("next/core-web-vitals", "next/typescript", "plugin:prettier/recommended", "plugin:jsx-a11y/recommended"),
{
extends: [
'plugin:prettier/recommended',
'plugin:jsx-a11y/recommended', // Add this line
],
rules: {
// Example: Enforce using `const` for variables that are never reassigned
'prefer-const': 'error',
// Example: Disallow unused variables (already often included in recommended configs, but shown for illustration)
'prefer-const': 'warn',
'no-unused-vars': ['warn', { 'args': 'none' }],
// Example: Disable a rule if it conflicts with your style or Prettier (less common after plugin:prettier/recommended)
// 'indent': 'off',
'@typescript-eslint/no-unused-vars': ['warn', { 'args': 'none' }],
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/ban-ts-comment': 'warn',
'@typescript-eslint/no-empty-object-type': 'warn',
'prettier/prettier': 'warn',
'jsx-a11y/click-events-have-key-events': 'warn',
'jsx-a11y/no-static-element-interactions': 'warn',
'jsx-a11y/alt-text': 'warn',
'jsx-a11y/no-noninteractive-element-interactions': 'warn',
},
},
];