Skip to content
Merged
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
5 changes: 3 additions & 2 deletions .prettierrc.json → .oxfmtrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"tabWidth": 2,
"singleQuote": true,
"printWidth": 100,
"parser": "typescript"
}
"sortPackageJson": false,
"ignorePatterns": ["*.md", "*.yml"]
}
10 changes: 10 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["eslint", "oxc", "import", "typescript", "unicorn"],
"options": {
"typeAware": true
},
"env": {
"builtin": true
}
}
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"]
}

19 changes: 14 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
"scripts": {
"build": "tsc",
"build:docs": "typedoc src/index.ts",
"lint": "oxlint && oxfmt --check",
"lint:fix": "oxlint --fix && oxfmt --write",
"test": "vitest run && tsc --noEmit",
"prepack": "tsc",
"prepare": "husky"
Expand All @@ -28,14 +30,21 @@
"extract-zip": "^2.0.1",
"husky": "^9.1.7",
"lint-staged": "^16.1.2",
"prettier": "^3.6.2",
"typedoc": "~0.25.13",
"typescript": "^5.8.3",
"oxfmt": "^0.44.0",
"oxlint": "^1.59.0",
"oxlint-tsgolint": "^0.20.0",
"typedoc": "~0.28.0",
"typescript": "^6.0.2",
"vitest": "^4.1.2"
},
"lint-staged": {
"*.ts": [
"prettier --write"
"*.{ts}": [
"oxlint --fix",
"oxfmt"
],
"*.{json}": [
"oxlint --fix",
"oxfmt"
]
},
"files": [
Expand Down
9 changes: 7 additions & 2 deletions src/bin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,12 @@ if (mode === 'read') {

getCurrentFuseWire(argv.app)
.then((config) => {
const { version, resetAdHocDarwinSignature, strictlyRequireAllFuses, ...rest } = config;
const {
version,
resetAdHocDarwinSignature: _resetAdHocDarwinSignature,
strictlyRequireAllFuses: _strictlyRequireAllFuses,
...rest
} = config;
console.log(`Fuse Version: ${styleText(['cyan'], `v${version}`)}`);

switch (config.version) {
Expand Down Expand Up @@ -108,7 +113,7 @@ if (mode === 'read') {

getCurrentFuseWire(argv.app)
.then((config) => {
const { version, resetAdHocDarwinSignature, ...rest } = config;
const { version } = config;
console.log(`Fuse Version: ${styleText(['cyan'], `v${version}`)}`);

const keyPairs = positionals || [];
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const state = (b: boolean | undefined) =>
b === undefined ? FuseState.INHERIT : b ? FuseState.ENABLE : FuseState.DISABLE;

const buildFuseV1Wire = (config: FuseV1Config, wireLength: number) => {
const { version, ...nonVersionConfig } = config;
const { version: _version, ...nonVersionConfig } = config;
const badFuseOption = Object.keys(nonVersionConfig).find(
(fuseOption) => parseInt(fuseOption, 10) >= wireLength,
);
Expand Down
6 changes: 3 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"compilerOptions": {
"sourceMap": true,
"noImplicitAny": true,
"types": ["node"],
"rootDir": "src",
"outDir": "dist",
"allowSyntheticDefaultImports": true,
"declaration": true,
"incremental": true
},
"include": [
"src"
]
"include": ["src"]
}
Loading