Skip to content

Commit 6996413

Browse files
chore(deps-dev): bump @antfu/eslint-config from 2.25.1 to 4.3.0 (#1146)
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Christoph Werner <[email protected]>
1 parent eb36371 commit 6996413

24 files changed

+2985
-2158
lines changed

package-lock.json

Lines changed: 2948 additions & 2121 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
@@ -72,7 +72,7 @@
7272
"webpack-sources": "^3.2.3"
7373
},
7474
"devDependencies": {
75-
"@antfu/eslint-config": "2.25.1",
75+
"@antfu/eslint-config": "4.3.0",
7676
"@swc/core": "^1.3.93",
7777
"@types/jest": "29.5.14",
7878
"@types/lodash": "^4.14.198",

src/LicenseFileWriter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import lodash from 'lodash'
21
import type IAssetManager from './types/IAssetManager'
32
import type ILicenseMetaAggregator from './types/ILicenseMetaAggregator'
43
import type IModuleDirectoryLocator from './types/IModuleDirectoryLocator'
54
import type IPluginOptions from './types/IPluginOptions'
5+
import lodash from 'lodash'
66

77
const { compact, uniq } = lodash
88

src/LicenseIdentifier.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import validate from 'spdx-expression-validate'
21
import type IAlertAggregator from './types/IAlertAggregator'
32
import type IPackageJson from './types/IPackageJson'
43
import type IPluginOptions from './types/IPluginOptions'
4+
import validate from 'spdx-expression-validate'
55

66
/**
77
* Identifies license type based on package.json and selects
@@ -36,7 +36,7 @@ export default class LicenseIdentifier {
3636
// handle deprecated `licenses` field
3737
license
3838
= this.findPreferredLicense(meta.licenses.map(l => l.type))
39-
|| meta.licenses[0].type
39+
|| meta.licenses[0].type
4040
}
4141
else if (typeof meta.licenses === 'string') {
4242
// handle invalid string values for deprecated `licenses` field

src/LicenseMetaAggregator.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
import LicenseIdentifier from './LicenseIdentifier'
2-
import LicenseTextReader from './LicenseTextReader'
3-
import NoticeTextReader from './NoticeTextReader'
41
import type IAlertAggregator from './types/IAlertAggregator'
52
import type IFileSystem from './types/IFileSystem'
63
import type ILicenseIdentifier from './types/ILicenseIdentifier'
@@ -11,6 +8,9 @@ import type IPackageJson from './types/IPackageJson'
118
import type IPackageJsonReader from './types/IPackageJsonReader'
129
import type IPackageLicenseMeta from './types/IPackageLicenseMeta'
1310
import type IPluginOptions from './types/IPluginOptions'
11+
import LicenseIdentifier from './LicenseIdentifier'
12+
import LicenseTextReader from './LicenseTextReader'
13+
import NoticeTextReader from './NoticeTextReader'
1414

1515
export default class LicenseMetaAggregator implements ILicenseMetaAggregator {
1616
constructor(
@@ -49,7 +49,8 @@ export default class LicenseMetaAggregator implements ILicenseMetaAggregator {
4949
const sortedModuleDirs = moduleDirs.sort((a, b) =>
5050
this.packageJsonReader
5151
.readPackageJson(a)
52-
.name.localeCompare(this.packageJsonReader.readPackageJson(b).name),
52+
.name
53+
.localeCompare(this.packageJsonReader.readPackageJson(b).name),
5354
)
5455

5556
for (const moduleDir of sortedModuleDirs) {

src/LicenseTextReader.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { join } from 'node:path'
2-
import DefaultLicenseTextProvider from './DefaultLicenseTextProvider'
31
import type IAlertAggregator from './types/IAlertAggregator'
42
import type IDefaultLicenseTextProvider from './types/IDefaultLicenseTextProvider'
53
import type IFileSystem from './types/IFileSystem'
64
import type IPackageJson from './types/IPackageJson'
75
import type IPluginOptions from './types/IPluginOptions'
6+
import { join } from 'node:path'
7+
import DefaultLicenseTextProvider from './DefaultLicenseTextProvider'
88

99
/**
1010
* Reads license text from license file.

src/ModuleDirectoryLocator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { resolve, sep } from 'node:path'
21
import type IFileSystem from './types/IFileSystem'
32
import type IModuleDirectoryLocator from './types/IModuleDirectoryLocator'
43
import type IPackageJsonReader from './types/IPackageJsonReader'
4+
import { resolve, sep } from 'node:path'
55

66
/**
77
* Locates module directories for given filenames by searching

src/NoticeTextReader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { join } from 'node:path'
21
import type IFileSystem from './types/IFileSystem'
2+
import { join } from 'node:path'
33

44
/**
55
* Reads notice text from notice file.

src/OptionsProvider.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import validate from 'spdx-expression-validate'
2-
import defaultOptions from './defaultOptions'
31
import type IAlertAggregator from './types/IAlertAggregator'
42
import type IPluginOptions from './types/IPluginOptions'
3+
import validate from 'spdx-expression-validate'
4+
import defaultOptions from './defaultOptions'
55

66
export default class OptionsProvider {
77
constructor(private readonly alertAggregator: IAlertAggregator) {}

src/PackageJsonReader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { join } from 'node:path'
21
import type IFileSystem from './types/IFileSystem'
32
import type IPackageJson from './types/IPackageJson'
3+
import { join } from 'node:path'
44

55
interface IPackageJsonCache {
66
[moduleDir: string]: IPackageJson

0 commit comments

Comments
 (0)