Skip to content

Commit df43ad3

Browse files
[autofix.ci] apply automated fixes
1 parent 63ea8ea commit df43ad3

File tree

5 files changed

+8
-10
lines changed

5 files changed

+8
-10
lines changed

Diff for: eslint.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
import base from '@1stg/eslint-config'
44

55
/**
6-
* @import {TSESLint} from '@typescript-eslint/utils'
76
* @type {TSESLint.FlatConfig.ConfigArray}
7+
* @import { TSESLint } from '@typescript-eslint/utils'
88
*/
99
const config = [
1010
{

Diff for: src/constants.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ export const defaultConditionNames = [
1515
]
1616

1717
/**
18-
* `.mts`, `.cts`, `.d.mts`, `.d.cts`, `.mjs`, `.cjs` are not included because `.cjs` and `.mjs` must be used explicitly
18+
* `.mts`, `.cts`, `.d.mts`, `.d.cts`, `.mjs`, `.cjs` are not included because
19+
* `.cjs` and `.mjs` must be used explicitly
1920
*/
2021
export const defaultExtensions = [
2122
'.ts',

Diff for: src/helpers.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import fs from 'node:fs'
22
import path from 'node:path'
33

44
/**
5-
* For a scoped package, we must look in `@types/foo__bar` instead of `@types/@foo/bar`.
5+
* For a scoped package, we must look in `@types/foo__bar` instead of
6+
* `@types/@foo/bar`.
67
*/
78
export function mangleScopedPackage(moduleName: string) {
89
if (moduleName.startsWith('@')) {

Diff for: src/types.ts

+2-6
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,9 @@ import type { NapiResolveOptions } from 'unrs-resolver'
22

33
export interface TypeScriptResolverOptions extends NapiResolveOptions {
44
project?: string[] | string
5-
/**
6-
* @default true - whether to always try to resolve `@types` packages
7-
*/
5+
/** @default true - whether to always try to resolve `@types` packages */
86
alwaysTryTypes?: boolean
9-
/**
10-
* Whether `bun` core modules should be accounted
11-
*/
7+
/** Whether `bun` core modules should be accounted */
128
bun?: boolean
139
noWarnOnMultipleProjects?: boolean
1410
}

Diff for: tests/e2e/base.eslintrc.cjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
2-
* @import {TSESLint} from '@typescript-eslint/utils'
32
* @param {string | string[]} project
43
* @returns {TSESLint.ClassicConfig.Config}
4+
* @import { TSESLint } from '@typescript-eslint/utils'
55
*/
66
const base = project => ({
77
extends: [

0 commit comments

Comments
 (0)