mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-07 14:26:03 +00:00
28 lines
708 B
JavaScript
28 lines
708 B
JavaScript
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
|
|
import reactHooks from 'eslint-plugin-react-hooks';
|
|
import tseslint from 'typescript-eslint';
|
|
|
|
const eslintConfig = [
|
|
...tseslint.configs.recommended,
|
|
{
|
|
files: ['**/*.{js,jsx,ts,tsx}'],
|
|
plugins: {
|
|
'react-hooks': reactHooks,
|
|
},
|
|
rules: {
|
|
...reactHooks.configs.recommended.rules,
|
|
'@typescript-eslint/no-unused-vars': [
|
|
'warn',
|
|
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
|
|
],
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
},
|
|
},
|
|
eslintPluginPrettierRecommended,
|
|
{
|
|
ignores: ['dist/**', 'node_modules/**'],
|
|
},
|
|
];
|
|
|
|
export default eslintConfig;
|