Skip to content

Commit ad9f8bd

Browse files
renovate[bot]renovate-botcalebeby
authored
Update dependency eslint-plugin-unicorn to v31 (#256)
Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Caleb Eby <calebeby@users.noreply.github.com> Co-authored-by: Caleb Eby <caleb.eby01@gmail.com>
1 parent 9f0c8d1 commit ad9f8bd

12 files changed

Lines changed: 74 additions & 28 deletions

File tree

.changeset/thin-penguins-grin.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@cloudfour/eslint-plugin': major
3+
---
4+
5+
Update `eslint-plugin-unicorn` to v31
6+
7+
- Enabled new rule [`@cloudfour/unicorn/prefer-node-protocol`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-node-protocol.md)

fixtures/got/benchmark/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict';
2-
import { URL } from 'url';
2+
import { URL } from 'node:url';
33
import axios from 'axios';
44
import fetch from 'node-fetch';
55
import got from '../source';

fixtures/got/source/as-promise/core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { URL } from 'url';
1+
import type { URL } from 'node:url';
22
import is, { assert } from '@sindresorhus/is';
33
import type {
44
Options,

fixtures/got/source/core/utils/options-to-url.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* istanbul ignore file: deprecated */
2-
import { URL } from 'url';
2+
import { URL } from 'node:url';
33

44
export interface URLOptions {
55
href?: string;

fixtures/got/source/core/utils/timed-out.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { ClientRequest, IncomingMessage } from 'http';
1+
import type { ClientRequest, IncomingMessage } from 'node:http';
22
import unhandler from './unhandle';
33
import net = require('net');
44

fixtures/got/source/create.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { URL } from 'url';
1+
import type { URL } from 'node:url';
22
import { CancelError } from 'p-cancelable';
33
import is from '@sindresorhus/is';
44
import type {

fixtures/rollup/build-plugins/generate-license-file.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import fs from 'fs';
1+
import fs from 'node:fs';
22
import license from 'rollup-plugin-license';
33

44
function generateLicenseFile(dependencies) {

fixtures/rollup/rollup.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import alias from '@rollup/plugin-alias';
22
import commonjs from '@rollup/plugin-commonjs';
33
import json from '@rollup/plugin-json';
44
import resolve from '@rollup/plugin-node-resolve';
5-
import fs from 'fs';
6-
import path from 'path';
5+
import fs from 'node:fs';
6+
import path from 'node:path';
77
import { string } from 'rollup-plugin-string';
88
import { terser } from 'rollup-plugin-terser';
99
import typescript from 'rollup-plugin-typescript';

fixtures/rollup/src/watch/watch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as path from 'path';
1+
import * as path from 'node:path';
22
import createFilter from 'rollup-pluginutils/src/createFilter';
33
import { rollupInternal } from '../rollup/rollup';
44
import type {

package-lock.json

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

0 commit comments

Comments
 (0)