ready for build
This commit is contained in:
+11
-10
@@ -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',
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user