Skip to content

Commit

Permalink
chore: bump eslint-config-oclif
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Mar 4, 2024
1 parent 4cf92de commit 3d5be16
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 23 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@types/node": "^18",
"commitlint": "^18.6.1",
"eslint": "^8.57.0",
"eslint-config-oclif": "^5.0.2",
"eslint-config-oclif": "^5.0.3",
"eslint-config-oclif-typescript": "^3.0.48",
"eslint-config-prettier": "^9.1.0",
"globby": "^11.0.1",
Expand Down
2 changes: 1 addition & 1 deletion src/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function command(
args = castArray(args)
const [id, ...extra] = args
const cmdId = toStandardizedId(id, ctx.config)
ctx.expectation = ctx.expectation || `runs ${args.join(' ')}`
ctx.expectation ||= `runs ${args.join(' ')}`
await ctx.config.runHook('init', {argv: extra, id: cmdId})
ctx.returned = await ctx.config.runCommand(cmdId, extra)
},
Expand Down
4 changes: 2 additions & 2 deletions src/hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ export default (
} => ({
async run(ctx: Context) {
if (!event) throw new Error('no hook provided')
if (!ctx.config) ctx.config = await loadConfig(options).run({} as Context)
ctx.expectation = ctx.expectation || `runs ${event} hook`
ctx.config ||= await loadConfig(options).run({} as Context)
ctx.expectation ||= `runs ${event} hook`
ctx.returned = await ctx.config.runHook(event, hookOpts || {})
},
})
24 changes: 5 additions & 19 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1376,12 +1376,12 @@ eslint-config-oclif-typescript@^3.0.48:
eslint-plugin-node "^11.1.0"
eslint-plugin-perfectionist "^2.5.0"

eslint-config-oclif@^5.0.2:
version "5.0.2"
resolved "https://registry.yarnpkg.com/eslint-config-oclif/-/eslint-config-oclif-5.0.2.tgz#127fbb803629e6f913353f6975e413f77dfec373"
integrity sha512-5Ut0Rb1UfTJD54KMIA34SiJ7j3uUHfgn73LqkNEZx+mgTAAAL1+6/6uN0RJhmyp+9/HBIlO3v3pCX0pRR5knWQ==
eslint-config-oclif@^5.0.3:
version "5.0.3"
resolved "https://registry.yarnpkg.com/eslint-config-oclif/-/eslint-config-oclif-5.0.3.tgz#5ec3ac4db8e882de87e1412a03715f3a82e65784"
integrity sha512-H3pvoSCfni23l81agc7/r8jxQ7bVIKNqbLsN8eYG8w2wEpsACskplK3VEPzIrO8NSFDcxQJIxoVXxp94kXexTA==
dependencies:
eslint-config-xo-space "^0.34.0"
eslint-config-xo-space "^0.35.0"
eslint-plugin-mocha "^10.3.0"
eslint-plugin-node "^11.1.0"
eslint-plugin-unicorn "^48.0.1"
Expand All @@ -1391,27 +1391,13 @@ eslint-config-prettier@^9.1.0:
resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz#31af3d94578645966c082fcb71a5846d3c94867f"
integrity sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==

eslint-config-xo-space@^0.34.0:
version "0.34.0"
resolved "https://registry.yarnpkg.com/eslint-config-xo-space/-/eslint-config-xo-space-0.34.0.tgz#974db7f7091edc23e2f29cc98acaa1be78ac87e5"
integrity sha512-8ZI0Ta/loUIL1Wk/ouWvk2ZWN8X6Un49MqnBf2b6uMjC9c5Pcfr1OivEOrvd3niD6BKgMNH2Q9nG0CcCWC+iVA==
dependencies:
eslint-config-xo "^0.43.0"

eslint-config-xo-space@^0.35.0:
version "0.35.0"
resolved "https://registry.yarnpkg.com/eslint-config-xo-space/-/eslint-config-xo-space-0.35.0.tgz#fdc2741c601a011e3ba185f07e2e78b6eed9d3dc"
integrity sha512-+79iVcoLi3PvGcjqYDpSPzbLfqYpNcMlhsCBRsnmDoHAn4npJG6YxmHpelQKpXM7v/EeZTUKb4e1xotWlei8KA==
dependencies:
eslint-config-xo "^0.44.0"

eslint-config-xo@^0.43.0:
version "0.43.1"
resolved "https://registry.yarnpkg.com/eslint-config-xo/-/eslint-config-xo-0.43.1.tgz#c2ac8993f6e429048c813f599265d1636a0bc060"
integrity sha512-azv1L2PysRA0NkZOgbndUpN+581L7wPqkgJOgxxw3hxwXAbJgD6Hqb/SjHRiACifXt/AvxCzE/jIKFAlI7XjvQ==
dependencies:
confusing-browser-globals "1.0.11"

eslint-config-xo@^0.44.0:
version "0.44.0"
resolved "https://registry.yarnpkg.com/eslint-config-xo/-/eslint-config-xo-0.44.0.tgz#b4a68da791ecfd329bc7e1f88f9edea3d4dca70c"
Expand Down

0 comments on commit 3d5be16

Please sign in to comment.