mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-30 10:14:53 -05:00
* chore: replace Prettier with oxfmt and add oxlint - Replace Prettier with oxfmt (Prettier-compatible formatter from OXC project) - Add oxlint for fast linting alongside ESLint - Add eslint-plugin-oxlint to disable ESLint rules covered by oxlint - Update lint scripts to run oxfmt, oxlint, then eslint - Update lint-staged configuration for pre-commit hooks - Create .oxfmtrc.json and .oxlintrc.json configuration files - Remove .prettierrc.json and .prettierignore - Reformat codebase with oxfmt * chore: update dependencies in yarn.lock * chore: update oxlint configuration to disable additional rules * chore: update oxfmt and oxlint configurations, enhance test readability
78 lines
4.2 KiB
JSON
78 lines
4.2 KiB
JSON
{
|
|
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
|
"plugins": ["react", "typescript", "import", "jsx-a11y"],
|
|
"rules": {
|
|
// TODO fix all these and re-enable
|
|
"import/namespace": "off",
|
|
"jsx-a11y/alt-text": "off",
|
|
"jsx-a11y/aria-role": "off",
|
|
"jsx-a11y/click-events-have-key-events": "off",
|
|
"jsx-a11y/label-has-associated-control": "off",
|
|
"jsx-a11y/prefer-tag-over-role": "off",
|
|
"jsx-a11y/role-has-required-aria-props": "off",
|
|
"jsx-a11y/tabindex-no-positive": "off",
|
|
"no-async-promise-executor": "off",
|
|
"no-autofocus": "off",
|
|
"no-constant-condition": "off",
|
|
"no-empty-pattern": "off",
|
|
"no-extra-boolean-cast": "off",
|
|
"no-unused-vars": "off",
|
|
"no-useless-catch": "off",
|
|
"react/jsx-key": "off",
|
|
},
|
|
"overrides": [
|
|
{
|
|
// TODO: fix the issues in these files
|
|
"files": [
|
|
"packages/component-library/src/Menu.tsx",
|
|
"packages/desktop-client/src/components/accounts/Account.jsx",
|
|
"packages/desktop-client/src/components/accounts/MobileAccount.jsx",
|
|
"packages/desktop-client/src/components/accounts/MobileAccounts.jsx",
|
|
"packages/desktop-client/src/components/budget/BudgetCategories.jsx",
|
|
"packages/desktop-client/src/components/budget/BudgetSummaries.tsx",
|
|
"packages/desktop-client/src/components/budget/DynamicBudgetTable.tsx",
|
|
"packages/desktop-client/src/components/budget/envelope/HoldMenu.tsx",
|
|
"packages/desktop-client/src/components/budget/envelope/TransferMenu.tsx",
|
|
"packages/desktop-client/src/components/budget/index.tsx",
|
|
"packages/desktop-client/src/components/budget/MobileBudget.tsx",
|
|
"packages/desktop-client/src/components/FinancesApp.tsx",
|
|
"packages/desktop-client/src/components/GlobalKeys.ts",
|
|
"packages/desktop-client/src/components/LoggedInUser.tsx",
|
|
"packages/desktop-client/src/components/manager/ManagementApp.jsx",
|
|
"packages/desktop-client/src/components/manager/subscribe/common.tsx",
|
|
"packages/desktop-client/src/components/ManageRules.tsx",
|
|
"packages/desktop-client/src/components/mobile/MobileAmountInput.jsx",
|
|
"packages/desktop-client/src/components/mobile/MobileNavTabs.tsx",
|
|
"packages/desktop-client/src/components/Modals.tsx",
|
|
"packages/desktop-client/src/components/modals/EditRule.jsx",
|
|
"packages/desktop-client/src/components/modals/ImportTransactions.jsx",
|
|
"packages/desktop-client/src/components/modals/ImportTransactionsModal/ImportTransactionsModal.tsx",
|
|
"packages/desktop-client/src/components/modals/MergeUnusedPayees.jsx",
|
|
"packages/desktop-client/src/components/Notifications.tsx",
|
|
"packages/desktop-client/src/components/payees/ManagePayees.jsx",
|
|
"packages/desktop-client/src/components/payees/ManagePayeesWithData.jsx",
|
|
"packages/desktop-client/src/components/payees/PayeeTable.tsx",
|
|
"packages/desktop-client/src/components/reports/graphs/tableGraph/ReportTable.tsx",
|
|
"packages/desktop-client/src/components/reports/graphs/tableGraph/ReportTableTotals.tsx",
|
|
"packages/desktop-client/src/components/reports/reports/CashFlowCard.jsx",
|
|
"packages/desktop-client/src/components/reports/reports/CustomReport.jsx",
|
|
"packages/desktop-client/src/components/reports/reports/CustomReport.tsx",
|
|
"packages/desktop-client/src/components/reports/reports/NetWorthCard.jsx",
|
|
"packages/desktop-client/src/components/reports/SaveReportName.tsx",
|
|
"packages/desktop-client/src/components/reports/useReport.ts",
|
|
"packages/desktop-client/src/components/schedules/ScheduleDetails.jsx",
|
|
"packages/desktop-client/src/components/schedules/ScheduleEditModal.tsx",
|
|
"packages/desktop-client/src/components/schedules/SchedulesTable.tsx",
|
|
"packages/desktop-client/src/components/select/DateSelect.tsx",
|
|
"packages/desktop-client/src/components/sidebar/Tools.tsx",
|
|
"packages/desktop-client/src/components/sort.tsx",
|
|
"packages/desktop-client/src/hooks/useEffectAfterMount.ts",
|
|
"packages/desktop-client/src/hooks/useQuery.ts",
|
|
],
|
|
"rules": {
|
|
"react-hooks/exhaustive-deps": "off",
|
|
},
|
|
},
|
|
]
|
|
}
|