letsbe-hub/eslint.config.mjs

28 lines
652 B
JavaScript
Raw Permalink Normal View History

import tseslint from 'typescript-eslint';
import reactHooks from 'eslint-plugin-react-hooks';
export default tseslint.config(
{
ignores: [
'node_modules/**',
'.next/**',
'out/**',
'dist/**',
'build/**',
],
},
...tseslint.configs.recommended,
{
plugins: {
'react-hooks': reactHooks,
},
rules: {
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-require-imports': 'off',
},
},
);