diff --git a/.oxfmtrc.json b/.oxfmtrc.json index 3cbf98e3..0e528ee9 100644 --- a/.oxfmtrc.json +++ b/.oxfmtrc.json @@ -9,5 +9,6 @@ "useTabs": false, "endOfLine": "lf", "sortImports": true, - "sortPackageJson": false + "sortPackageJson": false, + "insertFinalNewline": true } diff --git a/package.json b/package.json index f6341561..c68aa006 100644 --- a/package.json +++ b/package.json @@ -16,12 +16,12 @@ "package:dir": "pnpm build && electron-builder --dir", "lint": "oxlint src", "lint:fix": "pnpm lint --fix", - "format": "oxfmt", - "format:check": "oxfmt --check", + "fmt": "oxfmt", + "fmt:check": "oxfmt --check", "start": "pnpm build && electron .", "start:dev": "pnpm build:dev && electron .", "start:watch": "pnpm build:dev && tsx scripts/startWatch.mts", - "test": "pnpm lint && pnpm testTypes", + "test": "pnpm lint && pnpm fmt:check && pnpm testTypes", "testTypes": "tsc --noEmit", "watch": "pnpm build --watch", "generateMeta": "tsx scripts/utils/generateMeta.mts"