mirror of
https://github.com/stablyai/orca.git
synced 2026-11-13 09:27:29 +00:00
* chore(lint): bump oxlint to 1.91, add perf lint rules and perf audits * fix(lint): await promises returned inside try/catch/finally for return-await Prepare typescript/return-await with error-handling-correctness-only: await returns whose catch or finally was meant to cover them, and suppress the eight sites where the catch must not re-handle the returned promise. * chore(lint): enable return-await (error-handling-correctness-only); exempt secondary-scan directives in the changed gate * refactor(mobile): move file preview discard modal into its own module Keeps MobileFilePreviewScreen under the 400-line limit after merging main. --------- Co-authored-by: m4air <m4air@m4airs-MacBook-Air.local>
43 lines
1.4 KiB
JSON
43 lines
1.4 KiB
JSON
{
|
|
"$schema": "../node_modules/oxlint/configuration_schema.json",
|
|
"plugins": ["react", "react-perf", "unicorn", "oxc", "import"],
|
|
"categories": {
|
|
"correctness": "off",
|
|
"suspicious": "off",
|
|
"pedantic": "off",
|
|
"perf": "off",
|
|
"style": "off",
|
|
"restriction": "off",
|
|
"nursery": "off"
|
|
},
|
|
"jsPlugins": [
|
|
{
|
|
"name": "app-store-performance",
|
|
"specifier": "../config/oxlint-plugins/app-store-performance.mjs"
|
|
},
|
|
{
|
|
"name": "quadratic-buffer-concat",
|
|
"specifier": "../config/oxlint-plugins/quadratic-buffer-concat.mjs"
|
|
}
|
|
],
|
|
"rules": {
|
|
"app-store-performance/require-selector": "warn",
|
|
"app-store-performance/no-whole-hot-map-selector": "warn",
|
|
"app-store-performance/no-identity-selector": "warn",
|
|
"app-store-performance/no-fresh-selector-result": "warn",
|
|
"app-store-performance/no-nested-fresh-under-shallow": "warn",
|
|
"quadratic-buffer-concat/no-loop-carried-concat": "warn",
|
|
"eslint/no-await-in-loop": "warn",
|
|
"oxc/no-map-spread": "warn",
|
|
"unicorn/prefer-set-has": "warn",
|
|
"react/no-array-index-key": "warn",
|
|
"react-perf/jsx-no-new-function-as-prop": "warn",
|
|
"react-perf/jsx-no-new-object-as-prop": "warn",
|
|
"react-perf/jsx-no-new-array-as-prop": "warn",
|
|
"react-perf/jsx-no-jsx-as-prop": "warn",
|
|
"import/no-cycle": "warn",
|
|
"oxc/no-barrel-file": "warn"
|
|
},
|
|
"ignorePatterns": ["**/node_modules", "**/dist", "**/out", "**/*.test.*", "**/*.spec.*"]
|
|
}
|