docs(changeset): Eslint, fixes on container rendering

This commit is contained in:
Hein
2025-10-22 13:17:42 +02:00
parent 2f0db1f0e3
commit 0f7cf52432
15 changed files with 314 additions and 257 deletions

36
eslint.config.ts Normal file
View File

@@ -0,0 +1,36 @@
import js from '@eslint/js';
import perfectionist from 'eslint-plugin-perfectionist';
import pluginReact from 'eslint-plugin-react';
//import reactHooks from 'eslint-plugin-react-hooks';
import reactRefresh from 'eslint-plugin-react-refresh';
import { defineConfig } from 'eslint/config';
import globals from 'globals';
import tseslint from 'typescript-eslint';
const config = defineConfig([
{
extends: ['js/recommended'],
files: ['**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
languageOptions: { globals: globals.browser },
plugins: { js },
},
// reactHooks.configs['recommended-latest'],
{...reactRefresh.configs.vite, ignores: ['**/*.test.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],},
tseslint.configs.recommended,
{
...pluginReact.configs.flat.recommended,
ignores: ['**/*.test.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
rules: {...pluginReact.configs.flat.recommended.rules,
'react/react-in-jsx-scope': 'off',
}
},
perfectionist.configs['recommended-alphabetical'],
{
rules: {
'@typescript-eslint/no-explicit-any': 'warn',
},
},
]);
export default config;