Eslint Configuration

This commit is contained in:
2025-03-29 18:53:40 +01:00
parent 1c794304ec
commit cec4c369c8
5 changed files with 1908 additions and 2 deletions

25
eslint.config.js Normal file
View File

@@ -0,0 +1,25 @@
import { defineConfig } from "eslint/config";
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import eslintPluginReact from "eslint-plugin-react";
import eslintPluginReactHooks from "eslint-plugin-react-hooks";
// noinspection JSCheckFunctionSignatures
export default defineConfig([
eslint.configs.recommended,
...tseslint.configs.recommended,
{
settings: {
react: {
version: "detect",
},
},
plugins: {
react: eslintPluginReact,
reactHooks: eslintPluginReactHooks,
},
},
eslintPluginReact.configs.flat.recommended,
eslintPluginReact.configs.flat['jsx-runtime'],
eslintPluginReactHooks.configs['recommended-latest'],
]);