Skip to content

Commit 7afe608

Browse files
authored
chore(docs): mention conflicting tools in upgrades (#7324)
Close #7298
1 parent ce80cf6 commit 7afe608

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

docs/add-new-linter.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,9 @@ documentation of the new tool.
214214
the user if the tools that might conflict with each other are enabled at the
215215
same time.
216216
217+
1. Update the [upgrade guide](./upgrade-guide.md) to mention the addition of a
218+
potentially conflicting linter.
219+
217220
### Configure the new tool for the Super-linter repository
218221
219222
If the default configuration of the new tool is unsuitable for the Super-linter

docs/upgrade-guide.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,34 @@ This document helps you upgrade from a super-linter version to newer ones:
1111

1212
## Upgrade from v8.1.0 to v8.2.0
1313

14+
This section helps you upgrade from super-linter `v8.1.0` to `v8.2.0`.
15+
16+
### Kubeconform
17+
1418
Super-linter `v8.2.0` adds back Kubeconform and related configuration variables:
1519

1620
- `KUBERNETES_KUBECONFORM_OPTIONS`
1721
- `VALIDATE_KUBERNETES_KUBECONFORM`
1822

23+
### Potentially conflicting linters and formatters
24+
25+
Super-linter `v8.2.0` adds support for running:
26+
27+
- Ruff as a formatter on Python files. This might conflict with Black
28+
(Languages: `PYTHON_BLACK`).
29+
- Biome as a linter. This might conflict with stylelint (`CSS`), ESLint
30+
(Languages: `JAVASCRIPT_ES`, `JSON`, `JSONC`, `JSX`, `TSX`, `TYPESCRIPT_ES`,
31+
`VUE`)
32+
- Biome as a formatter. This might conflict with Prettier (Languages:
33+
`CSS_PRETTIER`, `GRAPHQL_PRETTIER`, `HTML_PRETTIER`, `JAVASCRIPT_PRETTIER`,
34+
`JSON_PRETTIER`, `JSONC_PRETTIER`, `JSX_PRETTIER`, `TYPESCRIPT_PRETTIER`,
35+
`VUE_PRETTIER`).
36+
37+
If you have potentially conflicting linters or formatters enabled, Super-linter
38+
will emit a warning message. To turn the conflicting tools warning into a
39+
failure that makes Super-linter exit with an error, set the
40+
`FAIL_ON_CONFLICTING_TOOLS_ENABLED` configuration variable to `true`.
41+
1942
## Upgrade from v7.4.0 to v8
2043

2144
This section helps you upgrade from super-linter `v7.4.0` to `v8.0.0`.

0 commit comments

Comments
 (0)