Skip to content

Commit 9625890

Browse files
chore(deps): update dependency @types/eslint to v9 (#5591)
* chore(deps): update dependency @types/eslint to v9 * Migrate configuration --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Lukas Taegert-Atkinson <[email protected]>
1 parent 916bd62 commit 9625890

File tree

86 files changed

+707
-2265
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+707
-2265
lines changed

.eslintrc.js

Lines changed: 0 additions & 166 deletions
This file was deleted.

.lintstagedrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module.exports = {
2-
'*.{ts,js}': ['eslint --fix --cache'],
32
'*.md': ['prettier --write'],
3+
'*.{ts,js}': ['eslint --fix --cache']
44
};

.prettierrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@
1313
"proseWrap": "never"
1414
}
1515
}
16-
]
16+
],
17+
"plugins": ["prettier-plugin-organize-imports"]
1718
}

browser/src/initWasm.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// eslint-disable-next-line import/no-unresolved
21
import init from '../../wasm/bindings_wasm';
32

43
export default async function initWasm() {

browser/src/wasm.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
// eslint-disable-next-line import/no-unresolved
2-
export { parse, xxhashBase64Url, xxhashBase36, xxhashBase16 } from '../../wasm/bindings_wasm.js';
1+
export { parse, xxhashBase16, xxhashBase36, xxhashBase64Url } from '../../wasm/bindings_wasm.js';
32

4-
// eslint-disable-next-line import/no-unresolved
53
import { parse } from '../../wasm/bindings_wasm.js';
4+
65
export async function parseAsync(
76
code: string,
87
allowReturnOutsideFunction: boolean,

build-plugins/fs-events-replacement.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import type { RollupReplaceOptions } from '@rollup/plugin-replace';
12
import { readFile } from 'node:fs/promises';
23
import { exit } from 'node:process';
3-
import type { RollupReplaceOptions } from '@rollup/plugin-replace';
44

55
const FSEVENTS_HANDLER = 'node_modules/chokidar/lib/fsevents-handler.js';
66
const FSEVENTS_REQUIRE = "require('fsevents')";

cli/cli.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env node
2-
import process from 'node:process';
32
import help from 'help.md';
3+
import process from 'node:process';
44
import { version } from 'package.json';
55
import argParser from 'yargs-parser';
66
import { commandAliases } from '../src/utils/options/mergeOptions';
@@ -17,15 +17,14 @@ if (command.help || (process.argv.length <= 2 && process.stdin.isTTY)) {
1717
console.log(`rollup v${version}`);
1818
} else {
1919
try {
20-
// eslint-disable-next-line unicorn/prefer-module, @typescript-eslint/no-require-imports
20+
// eslint-disable-next-line @typescript-eslint/no-require-imports
2121
require('source-map-support').install();
2222
} catch {
2323
// do nothing
2424
}
2525

2626
const promise = run(command);
2727
if (command.forceExit) {
28-
// eslint-disable-next-line unicorn/no-process-exit
2928
promise.then(() => process.exit());
3029
}
3130
}

cli/run/batchWarnings.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,7 @@ export default function batchWarnings(command: Record<string, any>): BatchWarnin
9292
};
9393
}
9494

95-
const immediateHandlers: {
96-
[code: string]: (warning: RollupLog) => void;
97-
} = {
95+
const immediateHandlers: Record<string, (warning: RollupLog) => void> = {
9896
MISSING_NODE_BUILTINS(warning) {
9997
title(`Missing shims for Node.js built-ins`);
10098

@@ -111,9 +109,7 @@ const immediateHandlers: {
111109
}
112110
};
113111

114-
const deferredHandlers: {
115-
[code: string]: (warnings: RollupLog[]) => void;
116-
} = {
112+
const deferredHandlers: Record<string, (warnings: RollupLog[]) => void> = {
117113
CIRCULAR_DEPENDENCY(warnings) {
118114
title(`Circular dependenc${warnings.length > 1 ? 'ies' : 'y'}`);
119115
const displayed = warnings.length > 5 ? warnings.slice(0, 3) : warnings;

cli/run/commandPlugins.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ function getCamelizedPluginBaseName(pluginText: string): string {
114114

115115
async function requireOrImport(pluginPath: string): Promise<any> {
116116
try {
117-
// eslint-disable-next-line unicorn/prefer-module, @typescript-eslint/no-require-imports
117+
// eslint-disable-next-line @typescript-eslint/no-require-imports
118118
return require(pluginPath);
119119
} catch {
120120
return import(pluginPath);

cli/run/getConfigPath.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,9 @@ export async function getConfigPath(commandConfig: string | true): Promise<strin
1313
if (commandConfig.slice(0, 5) === 'node:') {
1414
const packageName = commandConfig.slice(5);
1515
try {
16-
// eslint-disable-next-line unicorn/prefer-module
1716
return require.resolve(`rollup-config-${packageName}`, { paths: [cwd()] });
1817
} catch {
1918
try {
20-
// eslint-disable-next-line unicorn/prefer-module
2119
return require.resolve(packageName, { paths: [cwd()] });
2220
} catch (error: any) {
2321
if (error.code === 'MODULE_NOT_FOUND') {

0 commit comments

Comments
 (0)