mirror of
https://github.com/R0m1k3/podcastic.git
synced 2026-10-11 17:26:20 +02:00
- eslint 8 → 9, @typescript-eslint/* → typescript-eslint (package unifié) - Remplace .eslintrc.json par eslint.config.mjs (backend) et eslint.config.js (frontend) - Ajoute eslint-plugin-react, eslint-plugin-react-hooks, globals (frontend) - Supprime rimraf@3, @humanwhocodes/* qui étaient des deps transitives d'eslint v8 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
35 lines
850 B
JavaScript
35 lines
850 B
JavaScript
import js from '@eslint/js';
|
|
import tseslint from 'typescript-eslint';
|
|
import reactPlugin from 'eslint-plugin-react';
|
|
import reactHooksPlugin from 'eslint-plugin-react-hooks';
|
|
import globals from 'globals';
|
|
|
|
export default tseslint.config(
|
|
js.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
{
|
|
plugins: {
|
|
react: reactPlugin,
|
|
'react-hooks': reactHooksPlugin,
|
|
},
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.browser,
|
|
},
|
|
},
|
|
rules: {
|
|
'react/react-in-jsx-scope': 'off',
|
|
'@typescript-eslint/no-unused-vars': 'warn',
|
|
'@typescript-eslint/no-explicit-any': 'warn',
|
|
'react-hooks/rules-of-hooks': 'error',
|
|
'react-hooks/exhaustive-deps': 'warn',
|
|
},
|
|
settings: {
|
|
react: { version: 'detect' },
|
|
},
|
|
},
|
|
{
|
|
ignores: ['dist/**', 'node_modules/**'],
|
|
}
|
|
);
|