chore: replace Prettier with oxfmt and add oxlint (#6259)

* 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
This commit is contained in:
Matiss Janis Aboltins
2025-12-04 19:55:10 +00:00
committed by GitHub
parent 76dadfa5fb
commit 879fd1b054
33 changed files with 1133 additions and 1692 deletions

View File

@@ -2,5 +2,4 @@ export const captureException = function (exc: Error) {
console.error('[Exception]', exc);
};
// eslint-disable-next-line
export const captureBreadcrumb = function (crumb: unknown) {};

View File

@@ -144,8 +144,6 @@ async function execTransactionsGrouped(
rows = await db.all<db.DbViewTransactionInternal>(rowSql, params);
} else {
// TODO: phew, what a doozy. write docs why it works this way
//
// prettier-ignore
const rowSql = `
SELECT group_id, matched FROM (
SELECT

View File

@@ -121,7 +121,6 @@ export type DbSchedule = {
tombstone: 1 | 0;
};
// eslint-disable-next-line @typescript-eslint/no-unused-vars
type DbScheduleJsonPath = {
schedule_id: DbSchedule['id'];
payee: string;
@@ -140,7 +139,7 @@ export type DbScheduleNextDate = {
};
// This is unused in the codebase.
// eslint-disable-next-line @typescript-eslint/no-unused-vars
type DbPendingTransaction = {
id: string;
acct: number;

View File

@@ -22,7 +22,8 @@ import type { ApiHandlers } from './api-handlers';
import type { ServerHandlers } from './server-handlers';
export interface Handlers
extends ServerHandlers,
extends
ServerHandlers,
ApiHandlers,
BudgetHandlers,
DashboardHandlers,