mirror of
https://github.com/Lifeforge-app/lifeforge.git
synced 2026-06-28 06:46:24 +00:00
Replace eslint.config.js with eslint.config.ts and split rules into modular eslint/ files (react, sonar, style, tests, stories, imports). Add custom local/padding-react-hooks rule that enforces padding around React hook calls (no blank lines between hooks, required before/after const/expression). Add @types/eslint-plugin-jsx-a11y and @typescript-eslint/utils as dev deps.
13 lines
253 B
TypeScript
13 lines
253 B
TypeScript
import type { Linter } from 'eslint'
|
|
|
|
const config: Linter.Config[] = [
|
|
{
|
|
files: ['**/*.test.ts', '**/*.test.tsx', '**/*.spec.ts', '**/*.spec.tsx'],
|
|
rules: {
|
|
'@typescript-eslint/no-explicit-any': 'off'
|
|
}
|
|
}
|
|
]
|
|
|
|
export default config
|