Skip to content

Commit

Permalink
style: format with prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Nov 20, 2023
1 parent 1f08dcc commit afea1a5
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: autofix.ci # needed to securely identify the workflow
name: autofix.ci # needed to securely identify the workflow

on:
pull_request:
push:
branches: [ "main" ]
branches: ["main"]

permissions:
contents: read
Expand All @@ -23,4 +23,4 @@ jobs:
run: pnpm run lint:fix
- uses: autofix-ci/action@d3e591514b99d0fca6779455ff8338516663f7cc
with:
commit-message: 'chore: apply automated lint fixes'
commit-message: "chore: apply automated lint fixes"
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@
"vitest": "^0.34.6"
},
"packageManager": "[email protected]"
}
}
2 changes: 1 addition & 1 deletion playground/commands/build.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import consola from 'consola'
import consola from "consola";
import { defineCommand } from "../../src";

export default defineCommand({
Expand Down
2 changes: 1 addition & 1 deletion playground/commands/deploy.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import consola from 'consola'
import consola from "consola";
import { defineCommand } from "../../src";

export default defineCommand({
Expand Down
18 changes: 9 additions & 9 deletions src/_parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ function toVal(out, key, val, opts) {
? ""
: String(val)
: typeof val === "boolean"
? val
: ~opts.boolean.indexOf(key)
? val === "false"
? false
: val === "true" ||
(out._.push(((x = +val), x * 0 === 0) ? x : val), !!val)
: ((x = +val), x * 0 === 0)
? x
: val;
? val
: ~opts.boolean.indexOf(key)
? val === "false"
? false
: val === "true" ||
(out._.push(((x = +val), x * 0 === 0) ? x : val), !!val)
: ((x = +val), x * 0 === 0)
? x
: val;
out[key] =
old == undefined ? nxt : Array.isArray(old) ? old.concat(nxt) : [old, nxt];
}
Expand Down

0 comments on commit afea1a5

Please sign in to comment.