openpencil/oxlintrc.json
Kayshen-X 02894ac3ee chore(editor): add oxlint and oxfmt for linting and formatting
Introduce oxlint (v1.57) as the project linter with correctness/suspicious/perf
categories and react/typescript/import/unicorn plugins. Add oxfmt (v0.42) as the
formatter configured with single quotes, semicolons, 100 char width, 2-space indent.

- Add oxlintrc.json, .oxfmtrc.json, .editorconfig configs
- Add lint, lint:fix, format, format:check npm scripts
- Extend .githooks/pre-commit to check staged files
- Add lint and format:check steps to CI workflow
- Apply full codebase formatting (584 files)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-29 00:19:51 +08:00

9 lines
248 B
JSON

{
"categories": {
"correctness": "error",
"suspicious": "warn",
"perf": "warn"
},
"plugins": ["react", "typescript", "import", "unicorn"],
"ignorePatterns": ["node_modules", "out", "dist", "**/routeTree.gen.ts", "**/*.gen.*"]
}