Skip to content

Commit

Permalink
chore: upgrade lintroll
Browse files Browse the repository at this point in the history
  • Loading branch information
privatenumber committed Aug 20, 2024
1 parent bd83d3b commit 6c8eae0
Show file tree
Hide file tree
Showing 10 changed files with 269 additions and 223 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
"get-node": "^15.0.1",
"kolorist": "^1.8.0",
"lint-staged": "^15.2.7",
"lintroll": "^1.7.1",
"lintroll": "^1.8.1",
"magic-string": "^0.30.10",
"manten": "^1.3.0",
"memfs": "^4.9.3",
Expand Down
472 changes: 259 additions & 213 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/cjs/api/register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export const register: Register = (
parameters.set('namespace', options.namespace);
}

// eslint-disable-next-line n/global-require,import-x/no-dynamic-require
// eslint-disable-next-line @typescript-eslint/no-require-imports, import-x/no-dynamic-require
return require(request + urlSearchParamsStringify(parameters));
};
unregister.require = scopedRequire;
Expand Down
2 changes: 1 addition & 1 deletion src/cjs/api/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type Module from 'module';
import type Module from 'node:module';

export type LoaderState = {
enabled: boolean;
Expand Down
2 changes: 1 addition & 1 deletion src/loader.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Hook require() to transform to CJS
// eslint-disable-next-line import-x/no-unresolved
// eslint-disable-next-line import-x/no-unresolved, @typescript-eslint/no-require-imports
require('./cjs/index.cjs');

/*
Expand Down
2 changes: 1 addition & 1 deletion src/preflight.cts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ if (isMainThread) {
* Although it is required twice, it's not executed twice because
* it's cached.
*/
// eslint-disable-next-line import-x/no-unresolved, n/global-require
// eslint-disable-next-line import-x/no-unresolved, @typescript-eslint/no-require-imports
require('./cjs/index.cjs');

(async () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/specs/cli.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { setTimeout } from 'timers/promises';
import { setTimeout } from 'node:timers/promises';
import { testSuite, expect } from 'manten';
import { createFixture } from 'fs-fixture';
import packageJson from '../../package.json';
Expand Down
2 changes: 1 addition & 1 deletion tests/specs/watch.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import path from 'node:path';
import { setTimeout } from 'timers/promises';
import { setTimeout } from 'node:timers/promises';
import { testSuite, expect } from 'manten';
import { createFixture } from 'fs-fixture';
import stripAnsi from 'strip-ansi';
Expand Down
4 changes: 2 additions & 2 deletions tests/utils/process-interact.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Readable } from 'node:stream';
import { on } from 'events';
import { setTimeout } from 'timers/promises';
import { on } from 'node:events';
import { setTimeout } from 'node:timers/promises';

type MaybePromise<T> = T | Promise<T>;

Expand Down
2 changes: 1 addition & 1 deletion tests/utils/pty-shell/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { setTimeout } from 'timers/promises';
import { setTimeout } from 'node:timers/promises';
import { fileURLToPath } from 'node:url';
import { execaNode, type NodeOptions } from 'execa';
import stripAnsi from 'strip-ansi';
Expand Down

0 comments on commit 6c8eae0

Please sign in to comment.