Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

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 685c55d commit ca23281
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"chai": "^4.4.1",
"chalk": "^4.1.0",
"eslint": "^8.57.0",
"eslint-config-oclif": "^5",
"eslint-config-oclif": "^5.0.3",
"eslint-config-oclif-typescript": "^2.0.1",
"http-call": "^5.2.3",
"markdown-toc": "^1.2.0",
Expand Down
2 changes: 1 addition & 1 deletion src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const base = <I extends Types.Context>(context: I): Types.Base<I, {}> => {
arg1 = undefined
}

if (!arg1) arg1 = context.expectation || 'test'
arg1 ||= context.expectation || 'test'
async function run(this: Types.ITestCallbackContext, done?: Types.MochaDone) {
context = assignWithProps({}, originalContext)
if (context.retries) this.retries(context.retries)
Expand Down
2 changes: 1 addition & 1 deletion src/nock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function nock(host: string, options: NockCallback | NockOptions, cb?: Noc
const intercepter = nock(host, options)
return {
async run(ctx: {nock: number}) {
ctx.nock = ctx.nock || 0
ctx.nock ||= 0
await cb!(intercepter)
ctx.nock++
},
Expand Down
4 changes: 1 addition & 3 deletions src/stub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ export default function <T extends Record<string, unknown>, K extends keyof T> (
let stub: SinonStub
return {
run(ctx: { sandbox: SinonSandbox }) {
if (!ctx.sandbox) {
ctx.sandbox = createSandbox()
}
ctx.sandbox ||= createSandbox()

stub = fn(ctx.sandbox.stub(object, path))
},
Expand Down
24 changes: 19 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -920,12 +920,12 @@ eslint-config-oclif-typescript@^2.0.1:
eslint-plugin-mocha "^10.1.0"
eslint-plugin-node "^11.1.0"

eslint-config-oclif@^5:
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 @@ -937,13 +937,27 @@ eslint-config-xo-space@^0.34.0:
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"
integrity sha512-YG4gdaor0mJJi8UBeRJqDPO42MedTWYMaUyucF5bhm2pi/HS98JIxfFQmTLuyj6hGpQlAazNfyVnn7JuDn+Sew==
dependencies:
confusing-browser-globals "1.0.11"

eslint-import-resolver-node@^0.3.7:
version "0.3.9"
resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz#d4eaac52b8a2e7c3cd1903eb00f7e053356118ac"
Expand Down

0 comments on commit ca23281

Please sign in to comment.