Skip to content

Commit 6c04a71

Browse files
authored
feat: upgrade eslint 10 flat config (#760)
* feat: update eslint 10 * Create modern-places-drive.md * update dep * fix lint * format files * format * Update index.js * fix build * Update Logger.d.ts * test
1 parent 7c4d052 commit 6c04a71

Some content is hidden

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

81 files changed

+1255
-1341
lines changed

.changeset/modern-places-drive.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@verdaccio/eslint-config': major
3+
---
4+
5+
feat: upgrade to eslint 10 flat config

.eslintignore

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

.eslintrc.js

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

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Verdaccio Monorepo
22

3-
This monorepo contains all the packages that composes the Verdaccio 6.x architecture, except [Verdaccio](https://github.com/verdaccio/verdaccio) itself and [UI](https://github.com/verdaccio/ui).
4-
⚠️ **DEPRECATED** All packages are being moved to `verdaccio/verdaccio/` master branch, only security vulnerabilities will be commited on this repo until verdaccio@6.x.x is being is replaced by major release.
3+
This monorepo contains all the packages that compose the Verdaccio 6.x architecture, except for [Verdaccio](https://github.com/verdaccio/verdaccio) itself and the [UI](https://github.com/verdaccio/ui).
4+
⚠️ **DEPRECATED** All packages are being moved to the `verdaccio/verdaccio/` master branch. Only security vulnerabilities will be committed to this repo until verdaccio@6.x.x is replaced by a major release.
55

6-
Features please refer to [the main repository](https://github.com/verdaccio/verdaccio). **Only bugs, mandatory maintenance and security updates are allowed on this repository**.
6+
For features, please refer to [the main repository](httpss://github.com/verdaccio/verdaccio). **Only bugs, mandatory maintenance, and security updates are allowed in this repository**.
77

88
## Contributing
99

10-
Please, refer to our [CONTRIBUTING](CONTRIBUTING.md) to learn how to contribute.
10+
Please refer to our [CONTRIBUTING](CONTRIBUTING.md) guide to learn how to contribute.
1111

1212
## License
1313

14-
Verdaccio Monorepo is an open source project with [MIT license](LICENSE)
14+
Verdaccio Monorepo is an open-source project licensed under the [MIT license](LICENSE).

core/deprecated-types/src/configuration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PackageAccess, PackageList } from './manifest';
1+
import type { PackageAccess, PackageList } from './manifest';
22

33
export type TypeToken = 'Bearer' | 'Basic';
44

core/deprecated-types/src/plugins/auth.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Callback, HttpError, RemoteUser } from '../commons';
2-
import { Config } from '../configuration';
1+
import type { Callback, HttpError, RemoteUser } from '../commons';
2+
import type { Config } from '../configuration';
33

44
export interface AuthPluginPackage {
55
packageName: string;

core/deprecated-types/src/plugins/commons.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Config, Logger } from '../configuration';
1+
import type { Config, Logger } from '../configuration';
22

33
export class Plugin<T> {
44
public constructor(config: T, options: PluginOptions<T>) {}

core/deprecated-types/src/plugins/filter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Package } from '../manifest';
2-
import { IPlugin } from './commons';
1+
import type { Package } from '../manifest';
2+
import type { IPlugin } from './commons';
33

44
export interface IPluginStorageFilter<T> extends IPlugin<T> {
55
filter_metadata(packageInfo: Package): Promise<Package>;

core/deprecated-types/src/plugins/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { RemoteUser } from '../commons';
2-
import { PackageAccess } from '../manifest';
3-
import { AuthAccessCallback, AuthCallback } from './auth';
4-
import { IPlugin } from './commons';
1+
import type { RemoteUser } from '../commons';
2+
import type { PackageAccess } from '../manifest';
3+
import type { AuthAccessCallback, AuthCallback } from './auth';
4+
import type { IPlugin } from './commons';
55

66
export interface AllowAccess {
77
name: string;

core/deprecated-types/src/plugins/middleware.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Config } from '../configuration';
2-
import { IBasicAuth } from './auth';
3-
import { IPlugin } from './commons';
4-
import { IStorageManager } from './storage';
2+
import type { IBasicAuth } from './auth';
3+
import type { IPlugin } from './commons';
4+
import type { IStorageManager } from './storage';
55

66
export interface IPluginMiddleware<T> extends IPlugin<T> {
77
register_middlewares(app: any, auth: IBasicAuth<T>, storage: IStorageManager<T>): void;

0 commit comments

Comments
 (0)