This PR contains the following updates:
Release Notes
prettier/eslint-config-prettier (eslint-config-prettier)
Compare Source
republish latest version
Full Changelog: https://github.com/prettier/eslint-config-prettier/compare/v10.1.5...v10.1.8
Compare Source
Patch Changes
Compare Source
Patch Changes
Compare Source
Patch Changes
Compare Source
Patch Changes
Compare Source
Patch Changes
-
#309 eb56a5e Thanks @JounQin! - fix: separate the /flat entry for compatibility
For flat config users, the previous "eslint-config-prettier" entry still works, but "eslint-config-prettier/flat" adds a new name property for config-inspector, we just can't add it for the default entry for compatibility.
See also #308
// before
import eslintConfigPrettier from "eslint-config-prettier";
// after
import eslintConfigPrettier from "eslint-config-prettier/flat";
Compare Source
Minor Changes
Compare Source
Patch Changes
Compare Source
Patch Changes
Compare Source
eslint-config-prettier
10.0.1
What's Changed
New Contributors
Full Changelog: https://github.com/prettier/eslint-config-prettier/compare/v9.1.0...v10.0.1
Compare Source
Major Changes
Compare Source
Compare Source
- Added: [unicorn/template-indent], (as a [special rule][unicorn/template-indent-special]). Thanks to Gürgün Dayıoğlu (@gurgunday)!
- Changed: All the [formatting rules that were deprecated in ESLint 8.53.0][deprecated-8.53.0] are now excluded if you set the
ESLINT_CONFIG_PRETTIER_NO_DEPRECATED environment variable.
Compare Source
- Added: The CLI helper tool now works with eslint.config.js (flat config). Just like ESLint itself, the CLI tool automatically first tries eslint.config.js and then eslintrc, and you can force which one to use by setting the [ESLINT_USE_FLAT_CONFIG] environment variable. Note that the config of eslint-config-prettier has always been compatible with eslint.config.js (flat config) – it was just the CLI tool that needed updating. On top of that, the docs have been updated to mention how to use both eslint.config.js (flat config) and eslintrc, and the tests now test both config systems.
- Changed: [unicode-bom] is no longer turned off. Prettier preserves the BOM if you have one, and does not add one if missing. It was wrong of eslint-config-prettier to disable that rule. If you get ESLint errors after upgrading, either add
"unicode-bom": "off" to your config to disable it again, or run ESLint with --fix to fix all files according to the rule (add or remove BOM). Thanks to Nicolas Stepien (@nstepien)!
Compare Source
Configuration
📅 Schedule: Branch creation - "after 5pm on Thursday,before 11:59pm on Sunday" in timezone Europe/Stockholm, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.
This PR contains the following updates:
| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Adoption](https://docs.renovatebot.com/merge-confidence/) | [Passing](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|---|---|
| [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) | [`^8.1.0` → `^10.0.0`](https://renovatebot.com/diffs/npm/eslint-config-prettier/8.10.0/10.1.8) |  |  |  |  |
---
### Release Notes
<details>
<summary>prettier/eslint-config-prettier (eslint-config-prettier)</summary>
### [`v10.1.8`](https://github.com/prettier/eslint-config-prettier/releases/tag/v10.1.8)
[Compare Source](https://github.com/prettier/eslint-config-prettier/compare/v10.1.5...v10.1.8)
republish latest version
**Full Changelog**: <https://github.com/prettier/eslint-config-prettier/compare/v10.1.5...v10.1.8>
### [`v10.1.5`](https://github.com/prettier/eslint-config-prettier/blob/HEAD/CHANGELOG.md#1015)
[Compare Source](https://github.com/prettier/eslint-config-prettier/compare/v10.1.4...v10.1.5)
##### Patch Changes
- [#​332](https://github.com/prettier/eslint-config-prettier/pull/332) [`60fef02`](https://github.com/prettier/eslint-config-prettier/commit/60fef02574467d31d10ff47ecb567d378483c9d4) Thanks [@​JounQin](https://github.com/JounQin)! - chore: add `funding` field into `package.json`
### [`v10.1.4`](https://github.com/prettier/eslint-config-prettier/blob/HEAD/CHANGELOG.md#1014)
[Compare Source](https://github.com/prettier/eslint-config-prettier/compare/v10.1.3...v10.1.4)
##### Patch Changes
- [#​328](https://github.com/prettier/eslint-config-prettier/pull/328) [`94b4799`](https://github.com/prettier/eslint-config-prettier/commit/94b47999e7eb13b703835729331376cef598b850) Thanks [@​silvenon](https://github.com/silvenon)! - fix(cli): do not crash on no rules configured
### [`v10.1.3`](https://github.com/prettier/eslint-config-prettier/blob/HEAD/CHANGELOG.md#1013)
[Compare Source](https://github.com/prettier/eslint-config-prettier/compare/v10.1.2...v10.1.3)
##### Patch Changes
- [#​325](https://github.com/prettier/eslint-config-prettier/pull/325) [`4e95a1d`](https://github.com/prettier/eslint-config-prettier/commit/4e95a1d50073f1a24f004239ad6e1a4ffa8476df) Thanks [@​pilikan](https://github.com/pilikan)! - fix: this package is `commonjs`, align its types correctly
### [`v10.1.2`](https://github.com/prettier/eslint-config-prettier/blob/HEAD/CHANGELOG.md#1012)
[Compare Source](https://github.com/prettier/eslint-config-prettier/compare/v10.1.1...v10.1.2)
##### Patch Changes
- [#​321](https://github.com/prettier/eslint-config-prettier/pull/321) [`a8768bf`](https://github.com/prettier/eslint-config-prettier/commit/a8768bfe54a91d08f0cef8705f91de2883436bb0) Thanks [@​Fdawgs](https://github.com/Fdawgs)! - chore(package): add homepage for some 3rd-party registry - see [#​321](https://github.com/prettier/eslint-config-prettier/pull/321) for more details
### [`v10.1.1`](https://github.com/prettier/eslint-config-prettier/blob/HEAD/CHANGELOG.md#1011)
[Compare Source](https://github.com/prettier/eslint-config-prettier/compare/v10.1.0...v10.1.1)
##### Patch Changes
- [#​309](https://github.com/prettier/eslint-config-prettier/pull/309) [`eb56a5e`](https://github.com/prettier/eslint-config-prettier/commit/eb56a5e09964e49045bccde3c616275eb0a0902d) Thanks [@​JounQin](https://github.com/JounQin)! - fix: separate the `/flat` entry for compatibility
For flat config users, the previous `"eslint-config-prettier"` entry still works, but `"eslint-config-prettier/flat"` adds a new `name` property for [config-inspector](https://eslint.org/blog/2024/04/eslint-config-inspector/), we just can't add it for the default entry for compatibility.
See also [#​308](https://github.com/prettier/eslint-config-prettier/issues/308)
```ts
// before
import eslintConfigPrettier from "eslint-config-prettier";
// after
import eslintConfigPrettier from "eslint-config-prettier/flat";
```
### [`v10.1.0`](https://github.com/prettier/eslint-config-prettier/blob/HEAD/CHANGELOG.md#1010)
[Compare Source](https://github.com/prettier/eslint-config-prettier/compare/v10.0.3...v10.1.0)
##### Minor Changes
- [#​306](https://github.com/prettier/eslint-config-prettier/pull/306) [`56e2e34`](https://github.com/prettier/eslint-config-prettier/commit/56e2e3466391d0fdfc200e42130309c687aaab53) Thanks [@​JounQin](https://github.com/JounQin)! - feat: migrate to exports field
### [`v10.0.3`](https://github.com/prettier/eslint-config-prettier/blob/HEAD/CHANGELOG.md#1003)
[Compare Source](https://github.com/prettier/eslint-config-prettier/compare/v10.0.2...v10.0.3)
##### Patch Changes
- [#​294](https://github.com/prettier/eslint-config-prettier/pull/294) [`8dbbd6d`](https://github.com/prettier/eslint-config-prettier/commit/8dbbd6d70b8a56cdfa4ea4e185d3699d5729b38e) Thanks [@​FloEdelmann](https://github.com/FloEdelmann)! - feat: add name to config
- [#​280](https://github.com/prettier/eslint-config-prettier/pull/280) [`cba5737`](https://github.com/prettier/eslint-config-prettier/commit/cba57377e4c86d20d17042d6999eabc754fddc03) Thanks [@​zanminkian](https://github.com/zanminkian)! - feat: add declaration file
### [`v10.0.2`](https://github.com/prettier/eslint-config-prettier/blob/HEAD/CHANGELOG.md#1002)
[Compare Source](https://github.com/prettier/eslint-config-prettier/compare/v10.0.1...v10.0.2)
##### Patch Changes
- [#​299](https://github.com/prettier/eslint-config-prettier/pull/299) [`e750edc`](https://github.com/prettier/eslint-config-prettier/commit/e750edc530c816e0b3ffabfab1f4e46532bccbfe) Thanks [@​Fdawgs](https://github.com/Fdawgs)! - chore(package): explicitly declare js module type
### [`v10.0.1`](https://github.com/prettier/eslint-config-prettier/releases/tag/v10.0.1)
[Compare Source](https://github.com/prettier/eslint-config-prettier/compare/v10.0.0...v10.0.1)
### eslint-config-prettier
#### 10.0.1
#### What's Changed
- chore: migrate to changeset for automatically releasing by [@​JounQin](https://github.com/JounQin) in [#​278](https://github.com/prettier/eslint-config-prettier/pull/278)
- add support for `@stylistic/eslint-plugin` by [@​abrahamguo](https://github.com/abrahamguo) in [#​272](https://github.com/prettier/eslint-config-prettier/pull/272)
#### New Contributors
- [@​JounQin](https://github.com/JounQin) made their first contribution in [#​278](https://github.com/prettier/eslint-config-prettier/pull/278)
- [@​abrahamguo](https://github.com/abrahamguo) made their first contribution in [#​272](https://github.com/prettier/eslint-config-prettier/pull/272)
**Full Changelog**: <https://github.com/prettier/eslint-config-prettier/compare/v9.1.0...v10.0.1>
### [`v10.0.0`](https://github.com/prettier/eslint-config-prettier/blob/HEAD/CHANGELOG.md#1000)
[Compare Source](https://github.com/prettier/eslint-config-prettier/compare/62a15bbfc953d798da2cc8a46e78897da0beac22...v10.0.0)
##### Major Changes
- [#​272](https://github.com/prettier/eslint-config-prettier/pull/272) [`5be64be`](https://github.com/prettier/eslint-config-prettier/commit/5be64bef68c3a9bf7202f591f54ffec02572e46b) Thanks [@​abrahamguo](https://github.com/abrahamguo)! - add support for [@​stylistic](https://github.com/stylistic) formatting rules
### [`v9.1.2`](https://github.com/prettier/eslint-config-prettier/compare/v9.1.0...62a15bbfc953d798da2cc8a46e78897da0beac22)
[Compare Source](https://github.com/prettier/eslint-config-prettier/compare/v9.1.0...62a15bbfc953d798da2cc8a46e78897da0beac22)
### [`v9.1.0`](https://github.com/prettier/eslint-config-prettier/blob/HEAD/CHANGELOG.md#Version-910-2023年12月02日)
[Compare Source](https://github.com/prettier/eslint-config-prettier/compare/v9.0.0...v9.1.0)
- Added: \[unicorn/template-indent], (as a \[special rule]\[unicorn/template-indent-special]). Thanks to Gürgün Dayıoğlu ([@​gurgunday](https://github.com/gurgunday))!
- Changed: All the \[formatting rules that were deprecated in ESLint 8.53.0]\[deprecated-8.53.0] are now excluded if you set the `ESLINT_CONFIG_PRETTIER_NO_DEPRECATED` environment variable.
### [`v9.0.0`](https://github.com/prettier/eslint-config-prettier/blob/HEAD/CHANGELOG.md#Version-900-2023年08月05日)
[Compare Source](https://github.com/prettier/eslint-config-prettier/compare/7bed431957ac0164497ce467f477f1af6590cccf...v9.0.0)
- Added: The CLI helper tool now works with eslint.config.js (flat config). Just like ESLint itself, the CLI tool automatically first tries eslint.config.js and then eslintrc, and you can force which one to use by setting the \[ESLINT\_USE\_FLAT\_CONFIG] environment variable. Note that the *config* of eslint-config-prettier has always been compatible with eslint.config.js (flat config) – it was just the CLI tool that needed updating. On top of that, the docs have been updated to mention how to use both eslint.config.js (flat config) and eslintrc, and the tests now test both config systems.
- Changed: \[unicode-bom] is no longer turned off. Prettier preserves the BOM if you have one, and does not add one if missing. It was wrong of eslint-config-prettier to disable that rule. If you get ESLint errors after upgrading, either add `"unicode-bom": "off"` to your config to disable it again, or run ESLint with `--fix` to fix all files according to the rule (add or remove BOM). Thanks to Nicolas Stepien ([@​nstepien](https://github.com/nstepien))!
### [`v8.10.2`](https://github.com/prettier/eslint-config-prettier/compare/v8.10.0...7bed431957ac0164497ce467f477f1af6590cccf)
[Compare Source](https://github.com/prettier/eslint-config-prettier/compare/v8.10.0...7bed431957ac0164497ce467f477f1af6590cccf)
</details>
---
### Configuration
📅 **Schedule**: Branch creation - "after 5pm on Thursday,before 11:59pm on Sunday" in timezone Europe/Stockholm, Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [x] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi43MS4wIiwidXBkYXRlZEluVmVyIjoiNDIuNzEuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19-->