Skip to content

Commit caa406e

Browse files
chore(deps): update dependency eslint-plugin-unicorn to v57 (#5852)
* chore(deps): update dependency eslint-plugin-unicorn to v57 * Change names to satisy linter --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Lukas Taegert-Atkinson <[email protected]>
1 parent 30c16e8 commit caa406e

File tree

106 files changed

+268
-244
lines changed

Some content is hidden

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

106 files changed

+268
-244
lines changed

package-lock.json

Lines changed: 159 additions & 135 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@
159159
"eslint": "^9.21.0",
160160
"eslint-config-prettier": "^10.0.1",
161161
"eslint-plugin-prettier": "^5.2.3",
162-
"eslint-plugin-unicorn": "^56.0.1",
162+
"eslint-plugin-unicorn": "^57.0.0",
163163
"eslint-plugin-vue": "^9.32.0",
164164
"fixturify": "^3.0.0",
165165
"flru": "^1.0.2",

src/rollup/rollup.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
import { version as rollupVersion } from 'package.json';
22
import Bundle from '../Bundle';
33
import Graph from '../Graph';
4-
import type { PluginDriver } from '../utils/PluginDriver';
5-
import { getSortedValidatedPlugins } from '../utils/PluginDriver';
64
import { mkdir, writeFile } from '../utils/fs';
75
import { catchUnfinishedHookActions } from '../utils/hookActions';
86
import initWasm from '../utils/initWasm';
9-
import { getLogHandler } from '../utils/logHandler';
107
import { getLogger } from '../utils/logger';
118
import { LOGLEVEL_DEBUG, LOGLEVEL_INFO, LOGLEVEL_WARN } from '../utils/logging';
9+
import { getLogHandler } from '../utils/logHandler';
1210
import {
1311
error,
1412
logAlreadyClosed,
@@ -20,7 +18,9 @@ import { normalizeInputOptions } from '../utils/options/normalizeInputOptions';
2018
import { normalizeOutputOptions } from '../utils/options/normalizeOutputOptions';
2119
import { getOnLog, normalizeLog, normalizePluginOption } from '../utils/options/options';
2220
import { dirname, resolve } from '../utils/path';
23-
import { ANONYMOUS_OUTPUT_PLUGIN_PREFIX, ANONYMOUS_PLUGIN_PREFIX } from '../utils/pluginUtils';
21+
import type { PluginDriver } from '../utils/PluginDriver';
22+
import { getSortedValidatedPlugins } from '../utils/PluginDriver';
23+
import { ANONYMOUS_OUTPUT_PLUGIN_PREFIX, ANONYMOUS_PLUGIN_PREFIX } from '../utils/pluginNames';
2424
import { getTimings, initialiseTimers, timeEnd, timeStart } from '../utils/timers';
2525
import type {
2626
InputOptions,

src/utils/PluginCache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { PluginCache, SerializablePluginCache } from '../rollup/types';
22
import { error, logAnonymousPluginCache, logDuplicatePluginName } from './logs';
3-
import { ANONYMOUS_OUTPUT_PLUGIN_PREFIX, ANONYMOUS_PLUGIN_PREFIX } from './pluginUtils';
3+
import { ANONYMOUS_OUTPUT_PLUGIN_PREFIX, ANONYMOUS_PLUGIN_PREFIX } from './pluginNames';
44

55
export function createPluginCache(cache: SerializablePluginCache): PluginCache {
66
return {

src/utils/PluginContext.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { error, logPluginError } from './logs';
1515
import { normalizeLog } from './options/options';
1616
import { parseAst } from './parseAst';
1717
import { createPluginCache, getCacheForUncacheablePlugin, NO_CACHE } from './PluginCache';
18-
import { ANONYMOUS_OUTPUT_PLUGIN_PREFIX, ANONYMOUS_PLUGIN_PREFIX } from './pluginUtils';
18+
import { ANONYMOUS_OUTPUT_PLUGIN_PREFIX, ANONYMOUS_PLUGIN_PREFIX } from './pluginNames';
1919

2020
export function getPluginContext(
2121
plugin: Plugin,
File renamed without changes.

test/browser/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const fixturify = require('fixturify');
1414
* @type {import('../../src/rollup/types')} Rollup
1515
*/
1616
const { rollup } = require('../../browser/dist/rollup.browser.js');
17-
const { assertFilesAreEqual, runTestSuiteWithSamples, compareError } = require('../utils.js');
17+
const { assertFilesAreEqual, runTestSuiteWithSamples, compareError } = require('../testHelpers.js');
1818

1919
runTestSuiteWithSamples(
2020
'browser',

test/browser/samples/basic/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { loader } = require('../../../utils.js');
1+
const { loader } = require('../../../testHelpers.js');
22

33
module.exports = defineTest({
44
description: 'bundles files for the browser',

test/browser/samples/missing-dependency-resolution/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { loader } = require('../../../utils.js');
1+
const { loader } = require('../../../testHelpers.js');
22

33
module.exports = defineTest({
44
description: 'fails if a dependency cannot be resolved',

test/browser/samples/supports-hashes/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { loader } = require('../../../utils.js');
1+
const { loader } = require('../../../testHelpers.js');
22

33
module.exports = defineTest({
44
description: 'supports hashes in the browser build',

0 commit comments

Comments
 (0)