* Remove unused FormLayout and SuperForm stores. * Consolidate form logic into Former component. * Implement new Former layout and types. * Update stories for new Former component. * Clean up unused styles and types across the project.
40 lines
1.2 KiB
TypeScript
40 lines
1.2 KiB
TypeScript
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}', '*stories.tsx'],
|
|
rules: {
|
|
...pluginReact.configs.flat.recommended.rules,
|
|
'react/react-in-jsx-scope': 'off',
|
|
'react-refresh/only-export-components': 'warn',
|
|
},
|
|
},
|
|
perfectionist.configs['recommended-alphabetical'],
|
|
{
|
|
rules: {
|
|
'@typescript-eslint/no-explicit-any': 'warn',
|
|
'@typescript-eslint/ban-ts-comment': 'off',
|
|
},
|
|
},
|
|
]);
|
|
|
|
export default config;
|