Files
lifeforge/eslint/sonar.ts
melvinchia3636 28584f4259 refactor: migrate eslint config to TS with modular rules and add local/padding-react-hooks rule
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.
2026-06-25 08:54:15 +08:00

14 lines
268 B
TypeScript

import type { Linter } from 'eslint'
import sonarjs from 'eslint-plugin-sonarjs'
const config: Linter.Config[] = [
{
...sonarjs.configs?.recommended,
rules: {
'sonarjs/prefer-read-only-props': 'off'
}
} as Linter.Config
]
export default config