mirror of
https://github.com/jakejarvis/sofa.git
synced 2026-10-15 23:55:43 -04:00
41 lines
1.3 KiB
JSON
41 lines
1.3 KiB
JSON
{
|
|
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
|
"plugins": ["oxc", "eslint", "typescript", "react", "import", "unicorn", "vitest", "jsx-a11y"],
|
|
"env": {
|
|
"builtin": true
|
|
},
|
|
"categories": {
|
|
"correctness": "error",
|
|
"suspicious": "warn",
|
|
"perf": "warn"
|
|
},
|
|
"rules": {
|
|
"react/react-in-jsx-scope": "off",
|
|
"react/style-prop-object": "off",
|
|
"import/no-unassigned-import": "off",
|
|
"import/no-named-as-default-member": "off",
|
|
"no-underscore-dangle": ["warn", { "allow": ["__APP_VERSION__", "__GIT_COMMIT_SHA__"] }],
|
|
"oxc/no-barrel-file": ["warn", { "threshold": 0 }],
|
|
"unicorn/no-array-sort": "off",
|
|
"unicorn/consistent-function-scoping": "off",
|
|
"no-unused-vars": [
|
|
"error",
|
|
{
|
|
"argsIgnorePattern": "^_",
|
|
"varsIgnorePattern": "^_",
|
|
"caughtErrorsIgnorePattern": "^_",
|
|
"destructuredArrayIgnorePattern": "^_",
|
|
"ignoreRestSiblings": true
|
|
}
|
|
],
|
|
"no-new": "off",
|
|
"no-await-in-loop": "off",
|
|
"react/no-array-index-key": "off",
|
|
"react/jsx-no-useless-fragment": "error",
|
|
"react/rules-of-hooks": "error",
|
|
"react/preserve-manual-memoization": "off",
|
|
"react/capitalized-calls": "off"
|
|
},
|
|
"ignorePatterns": ["node_modules", "dist", "build", "docs", "**/routeTree.gen.ts"]
|
|
}
|