From 500d985e40b23927170b927c8f6d5994c817679f Mon Sep 17 00:00:00 2001 From: kyu08 <49891479+kyu08@users.noreply.github.com> Date: Sat, 5 Apr 2025 14:15:29 +0900 Subject: [PATCH 1/2] docs: explicitly specify that the migrate command writes individual linters of the presets to the `linters.enable` field --- docs/src/docs/product/migration-guide.mdx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/src/docs/product/migration-guide.mdx b/docs/src/docs/product/migration-guide.mdx index b458d93fde4f..0991ad68391f 100644 --- a/docs/src/docs/product/migration-guide.mdx +++ b/docs/src/docs/product/migration-guide.mdx @@ -37,6 +37,8 @@ The `migrate` command enforces the following default values: - `run.concurrency`: if the existing value was `0`, it is removed as `0` is the new default. - `run.relative-path-mode`: if the existing value was `cfg`, it is removed as `cfg` is the new default. +`linters.presets` has been removed. The `migrate` command **automatically adds individual linters to `linters.enable`.** + `issues.exclude-generated` has a new default value (v1 `lax`, v2 `strict`), so this field will be added during the migration to maintain the previous behavior. `issues.exclude-dirs-use-default` has been removed, so it is converted to `linters.exclusions.paths` and, if needed, `formatters.exclusions.paths`. @@ -189,7 +191,7 @@ There are 2 new options (they are not strictly equivalent to the previous option #### `linters.presets` -This property have been removed. +This property has been removed. The `migrate` command **automatically adds individual linters to `linters.enable`.**
v1 From ecf6c02a4596b7492da1ebe9e8d9a1a46a00128c Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Sat, 5 Apr 2025 13:26:54 +0200 Subject: [PATCH 2/2] review --- docs/src/docs/product/migration-guide.mdx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/src/docs/product/migration-guide.mdx b/docs/src/docs/product/migration-guide.mdx index 0991ad68391f..ac3da4cf6d2c 100644 --- a/docs/src/docs/product/migration-guide.mdx +++ b/docs/src/docs/product/migration-guide.mdx @@ -37,14 +37,14 @@ The `migrate` command enforces the following default values: - `run.concurrency`: if the existing value was `0`, it is removed as `0` is the new default. - `run.relative-path-mode`: if the existing value was `cfg`, it is removed as `cfg` is the new default. -`linters.presets` has been removed. The `migrate` command **automatically adds individual linters to `linters.enable`.** - `issues.exclude-generated` has a new default value (v1 `lax`, v2 `strict`), so this field will be added during the migration to maintain the previous behavior. `issues.exclude-dirs-use-default` has been removed, so it is converted to `linters.exclusions.paths` and, if needed, `formatters.exclusions.paths`. Other fields explicitly defined in the configuration file are migrated even if the value is the same as the default value. +The `migrate` command automatically migrates `linters.presets` in individual linters to `linters.enable`. + ```txt Migrate configuration file from v1 to v2 @@ -191,7 +191,9 @@ There are 2 new options (they are not strictly equivalent to the previous option #### `linters.presets` -This property has been removed. The `migrate` command **automatically adds individual linters to `linters.enable`.** +This property has been removed. + +The `migrate` command automatically migrates `linters.presets` in individual linters to `linters.enable`.
v1