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 (#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:
committed by
GitHub
parent
76dadfa5fb
commit
879fd1b054
@@ -2,5 +2,4 @@ export const captureException = function (exc: Error) {
|
||||
console.error('[Exception]', exc);
|
||||
};
|
||||
|
||||
// eslint-disable-next-line
|
||||
export const captureBreadcrumb = function (crumb: unknown) {};
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user