mirror of
https://github.com/stablyai/orca
synced 2026-04-21 14:17:16 +00:00
Swap out eslint + 6 plugins for oxlint and prettier for oxfmt (oxc toolchain). Set up husky + lint-staged to run linter and formatter on pre-commit. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
23 lines
880 B
JSON
23 lines
880 B
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/nicolo-ribaudo/oxc-project.github.io/refs/heads/json-schemas/oxlint/v0.17.0/config.json",
|
|
"plugins": ["typescript", "react", "react-hooks", "react-perf"],
|
|
"categories": {
|
|
"correctness": "error"
|
|
},
|
|
"rules": {
|
|
"react/jsx-no-duplicate-props": "error",
|
|
"react/jsx-no-undef": "error",
|
|
"react/jsx-uses-vars": "error",
|
|
"react/no-children-prop": "error",
|
|
"react/no-danger-with-children": "error",
|
|
"react/no-direct-mutation-state": "error",
|
|
"react/no-find-dom-node": "error",
|
|
"react/no-render-return-value": "error",
|
|
"react/no-string-refs": "error",
|
|
"react/no-unescaped-entities": "error",
|
|
"react/require-render-return": "error",
|
|
"react-hooks/rules-of-hooks": "error",
|
|
"react-hooks/exhaustive-deps": "warn"
|
|
},
|
|
"ignorePatterns": ["**/node_modules", "**/dist", "**/out"]
|
|
}
|