clean all

This commit is contained in:
Bastien Chanot committed 2026-05-18 19:40:08 +02:00
1 parent f57d6ec3d3
commit 27afb719f5
101 files changed
+45 -14426

No files matched your search

-73
View File
@@ -1,73 +0,0 @@
import js from '@eslint/js';
import importX from 'eslint-plugin-import-x';
import jsxA11y from 'eslint-plugin-jsx-a11y';
import reactHooks from 'eslint-plugin-react-hooks';
import prettierConfig from 'eslint-config-prettier';
import tseslint from 'typescript-eslint';
export default tseslint.config(
{
ignores: [
'dist/',
'node_modules/',
'coverage/',
'playwright-report/',
'test-results/',
'eslint.config.js',
'vite.config.ts',
'vitest.config.ts',
'playwright.config.ts',
'tailwind.config.ts',
],
},
js.configs.recommended,
...tseslint.configs.strictTypeChecked,
...tseslint.configs.stylisticTypeChecked,
{
files: ['src/**/*.{ts,tsx}', 'tests/**/*.{ts,tsx}'],
languageOptions: {
parserOptions: {
project: ['./tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
},
plugins: {
'react-hooks': reactHooks,
'jsx-a11y': jsxA11y,
'import-x': importX,
},
rules: {
...reactHooks.configs.recommended.rules,
...jsxA11y.configs.recommended.rules,
'import-x/order': [
'warn',
{
groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index'],
'newlines-between': 'always',
alphabetize: { order: 'asc' },
},
],
'@typescript-eslint/no-unused-vars': [
'error',
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
],
'@typescript-eslint/consistent-type-imports': 'error',
// React-idiomatic relaxations (strict-type-checked is too aggressive
// against common JSX patterns):
'@typescript-eslint/no-confusing-void-expression': 'off',
'@typescript-eslint/no-misused-promises': [
'error',
{ checksVoidReturn: { attributes: false } },
],
'@typescript-eslint/no-floating-promises': 'warn',
'@typescript-eslint/no-unnecessary-condition': 'off',
'@typescript-eslint/restrict-template-expressions': [
'error',
{ allowNumber: true, allowBoolean: true },
],
'@typescript-eslint/dot-notation': 'off',
'@typescript-eslint/no-unnecessary-type-assertion': 'warn',
},
},
prettierConfig,
);