Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/cli/format/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ export default function (program: Command): void {
.description("Lint and format this Pepr module")
.option("-v, --validate-only", "Do not modify files, only validate formatting.")
.action(async opts => {
Log.warn(
"DEPRECATION NOTICE: Pepr v1.1.6 is the last release that supports ESLint v9. " +
"The next release will upgrade to ESLint v10, which includes breaking changes. " +
"Review the ESLint v10 migration guide before upgrading Pepr: <ADD_URL_HERE>",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Placeholder URL left in warning message

The migration guide URL is still <ADD_URL_HERE>, which will be shown verbatim to every user who runs pepr format. This should be replaced with the actual ESLint v10 migration guide URL before merging (e.g., https://eslint.org/docs/latest/use/migrate-to-10.0.0).

Suggested change
"Review the ESLint v10 migration guide before upgrading Pepr: <ADD_URL_HERE>",
"Review the ESLint v10 migration guide before upgrading Pepr: https://eslint.org/docs/latest/use/migrate-to-10.0.0",

);

const success = await peprFormat(opts.validateOnly);

if (success) {
Expand Down
Loading