Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
yarn lint-staged
9 changes: 9 additions & 0 deletions .oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"$schema": "./node_modules/oxfmt/configuration_schema.json",
"trailingComma": "all",
"tabWidth": 2,
"singleQuote": true,
"printWidth": 100,
"sortPackageJson": false,
"ignorePatterns": ["*.md", "*.yml", "*.yaml"]
}
6 changes: 6 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["eslint", "typescript", "unicorn", "oxc", "import"],
"categories": { "correctness": "warn" },
"options": { "typeAware": true }
}
15 changes: 0 additions & 15 deletions .prettierrc.json

This file was deleted.

3 changes: 1 addition & 2 deletions .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
"@semantic-release/npm",
"@semantic-release/github"
],
"branches": [ "main" ]
"branches": ["main"]
}

28 changes: 21 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@
"scripts": {
"build": "tsc",
"build:docs": "typedoc",
"lint": "prettier --check \"src/**/*.ts\"",
"prettier:write": "prettier --write \"src/**/*.ts\"",
"lint": "oxfmt --check . && oxlint",
"lint:fix": "oxfmt --write . && oxlint --fix",
"prepack": "yarn build",
"test": "vitest run"
"test": "vitest run",
"prepare": "husky"
},
"files": [
"lib"
Expand All @@ -37,10 +38,14 @@
"@types/debug": "^4.1.12",
"@types/node": "~22.10.7",
"@types/promise-retry": "^1.1.3",
"prettier": "^3.4.2",
"typedoc": "~0.25.13",
"typedoc-plugin-missing-exports": "^2.2.0",
"typescript": "~5.4.5",
"husky": "^9.1.7",
"lint-staged": "^16.4.0",
"oxfmt": "^0.44.0",
"oxlint": "^1.59.0",
"oxlint-tsgolint": "^0.20.0",
"typedoc": "~0.28.0",
"typedoc-plugin-missing-exports": "^4.1.3",
"typescript": "^6.0.2",
"vitest": "^4.1.1"
},
"dependencies": {
Expand All @@ -50,5 +55,14 @@
"resolutions": {
"fsevents": "npm:@electron/fsevents@2.3.3-fork"
},
"lint-staged": {
"*.{js,ts}": [
"oxfmt --write",
"oxlint --fix"
],
"*.{json,css,html}": [
"oxfmt --write"
]
},
"packageManager": "yarn@4.10.3+sha512.c38cafb5c7bb273f3926d04e55e1d8c9dfa7d9c3ea1f36a4868fa028b9e5f72298f0b7f401ad5eb921749eb012eb1c3bb74bf7503df3ee43fd600d14a018266f"
}
2 changes: 1 addition & 1 deletion src/notarytool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export async function notarizeAndWaitForNotaryTool(opts: NotarizeOptions) {
let parsed: any;
try {
parsed = JSON.parse(rawOut);
} catch (err) {
} catch {
throw new Error(
`Failed to notarize via notarytool. Failed with unexpected result: \n\n${rawOut}`,
);
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "@tsconfig/node22/tsconfig.json",
"compilerOptions": {
"sourceMap": true,
"rootDir": "src",
"outDir": "lib",
"types": ["node"],
"declaration": true
Expand Down
6 changes: 1 addition & 5 deletions typedoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,5 @@
"includeCategories": true
},
"defaultCategory": "Utility",
"categoryOrder": [
"Core",
"Credential Strategies",
"Utility Types",
]
"categoryOrder": ["Core", "Credential Strategies", "Utility Types"]
}
Loading