`,
})
export class AppComponent {}
```
##### Use `"json"` parser for `tsconfig.json` by default ([#16012](https://togithub.com/prettier/prettier/pull/16012) by [@sosukesuzuki](https://togithub.com/sosukesuzuki))
In [v2.3.0](https://prettier.io/blog/2024/01/12/3.2.0#new-jsonc-parser-added-15831httpsgithubcomprettierprettierpull15831-by-fiskerhttpsgithubcomfisker), we introduced `"jsonc"` parser which adds trialing comma **by default**.
When adding a new parser we also define how it will be used based on the [`linguist-languages`](https://www.npmjs.com/package/linguist-languages) data.
`tsconfig.json` is a special file used by [TypeScript](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html#using-tsconfigjson-or-jsconfigjson), it uses `.json` file extension, but it actually uses the [JSON with Comments](https://code.visualstudio.com/docs/languages/json#\_json-with-comments) syntax. However, we found that there are many third-party tools not recognize it correctly because of the confusing `.json` file extension.
We decide to treat it as a JSON file for now to avoid the extra configuration step.
To keep using the `"jsonc"` parser for your `tsconfig.json` files, add the following to your `.pretterrc` file
```json
{
"overrides": [
{
"files": ["tsconfig.json", "jsconfig.json"],
"options": {
"parser": "jsonc"
}
}
]
}
```
```
```
Configuration
📅 Schedule: Branch creation - "after 4pm on thursday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
[ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
7.5.0
->7.7.1
3.2.4
->3.2.5
Release Notes
upleveled/eslint-config-upleveled (eslint-config-upleveled)
### [`v7.7.1`](https://togithub.com/upleveled/eslint-config-upleveled/releases/tag/v7.7.1) [Compare Source](https://togithub.com/upleveled/eslint-config-upleveled/compare/v7.7.0...v7.7.1) - Switch off deprecated config options [`0bd69b0`](https://togithub.com/upleveled/eslint-config-upleveled/commit/0bd69b0) - Upgrade tests [`fa5e507`](https://togithub.com/upleveled/eslint-config-upleveled/commit/fa5e507) ### [`v7.7.0`](https://togithub.com/upleveled/eslint-config-upleveled/releases/tag/v7.7.0) [Compare Source](https://togithub.com/upleveled/eslint-config-upleveled/compare/v7.6.0...v7.7.0) - Install `prettier`, switch config `.mjs` to `.js` ([#334](https://togithub.com/upleveled/eslint-config-upleveled/issues/334)) [`102a0c4`](https://togithub.com/upleveled/eslint-config-upleveled/commit/102a0c4) - Upgrade tests [`1987af1`](https://togithub.com/upleveled/eslint-config-upleveled/commit/1987af1) ### [`v7.6.0`](https://togithub.com/upleveled/eslint-config-upleveled/releases/tag/v7.6.0) [Compare Source](https://togithub.com/upleveled/eslint-config-upleveled/compare/v7.5.1...v7.6.0) - Switch `.mjs` to `.js`, part one ([#333](https://togithub.com/upleveled/eslint-config-upleveled/issues/333)) [`e7b6ce9`](https://togithub.com/upleveled/eslint-config-upleveled/commit/e7b6ce9) - Upgrade tests [`07bc7c4`](https://togithub.com/upleveled/eslint-config-upleveled/commit/07bc7c4) ### [`v7.5.1`](https://togithub.com/upleveled/eslint-config-upleveled/releases/tag/v7.5.1) [Compare Source](https://togithub.com/upleveled/eslint-config-upleveled/compare/v7.5.0...v7.5.1) - Set "moduleDetection": "force" in tsconfig.json ([#330](https://togithub.com/upleveled/eslint-config-upleveled/issues/330)) [`7163c85`](https://togithub.com/upleveled/eslint-config-upleveled/commit/7163c85) - Update dependency upgrades - non-major ([#329](https://togithub.com/upleveled/eslint-config-upleveled/issues/329)) [`b6b24c0`](https://togithub.com/upleveled/eslint-config-upleveled/commit/b6b24c0) - Update dependency upgrades - non-major ([#328](https://togithub.com/upleveled/eslint-config-upleveled/issues/328)) [`5946da9`](https://togithub.com/upleveled/eslint-config-upleveled/commit/5946da9) - Update dependency upgrades - non-major ([#327](https://togithub.com/upleveled/eslint-config-upleveled/issues/327)) [`b830432`](https://togithub.com/upleveled/eslint-config-upleveled/commit/b830432) - Update dependency upgrades - non-major ([#326](https://togithub.com/upleveled/eslint-config-upleveled/issues/326)) [`2690822`](https://togithub.com/upleveled/eslint-config-upleveled/commit/2690822) - Update dependency upgrades - non-major ([#325](https://togithub.com/upleveled/eslint-config-upleveled/issues/325)) [`1fed6d0`](https://togithub.com/upleveled/eslint-config-upleveled/commit/1fed6d0) - Update dependency upgrades - non-major ([#324](https://togithub.com/upleveled/eslint-config-upleveled/issues/324)) [`72de304`](https://togithub.com/upleveled/eslint-config-upleveled/commit/72de304) - Update dependency upgrades - non-major ([#323](https://togithub.com/upleveled/eslint-config-upleveled/issues/323)) [`3f1e8e2`](https://togithub.com/upleveled/eslint-config-upleveled/commit/3f1e8e2) - Update dependency eslint-plugin-unicorn to v50 ([#322](https://togithub.com/upleveled/eslint-config-upleveled/issues/322)) [`40bd29e`](https://togithub.com/upleveled/eslint-config-upleveled/commit/40bd29e) - Update dependency upgrades - non-major ([#321](https://togithub.com/upleveled/eslint-config-upleveled/issues/321)) [`0efd413`](https://togithub.com/upleveled/eslint-config-upleveled/commit/0efd413) - Upgrade tests [`62e8a9a`](https://togithub.com/upleveled/eslint-config-upleveled/commit/62e8a9a)prettier/prettier (prettier)
### [`v3.2.5`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#325) [Compare Source](https://togithub.com/prettier/prettier/compare/3.2.4...3.2.5) [diff](https://togithub.com/prettier/prettier/compare/3.2.4...3.2.5) ##### Support Angular inline styles as single template literal ([#15968](https://togithub.com/prettier/prettier/pull/15968) by [@sosukesuzuki](https://togithub.com/sosukesuzuki)) [Angular v17](https://blog.angular.io/introducing-angular-v17-4d7033312e4b) supports single string inline styles. ```ts // Input @Component({ template: `{{ hello }}
`, }) export class AppComponent {} // Prettier 3.2.4 const template = "foobar"; @Component({ [template]: `{{ hello }}
`, }) export class AppComponent {} // Prettier 3.2.5 const template = "foobar"; @Component({ [template]: `{{ hello }}
`, }) export class AppComponent {} ``` ##### Use `"json"` parser for `tsconfig.json` by default ([#16012](https://togithub.com/prettier/prettier/pull/16012) by [@sosukesuzuki](https://togithub.com/sosukesuzuki)) In [v2.3.0](https://prettier.io/blog/2024/01/12/3.2.0#new-jsonc-parser-added-15831httpsgithubcomprettierprettierpull15831-by-fiskerhttpsgithubcomfisker), we introduced `"jsonc"` parser which adds trialing comma **by default**. When adding a new parser we also define how it will be used based on the [`linguist-languages`](https://www.npmjs.com/package/linguist-languages) data. `tsconfig.json` is a special file used by [TypeScript](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html#using-tsconfigjson-or-jsconfigjson), it uses `.json` file extension, but it actually uses the [JSON with Comments](https://code.visualstudio.com/docs/languages/json#\_json-with-comments) syntax. However, we found that there are many third-party tools not recognize it correctly because of the confusing `.json` file extension. We decide to treat it as a JSON file for now to avoid the extra configuration step. To keep using the `"jsonc"` parser for your `tsconfig.json` files, add the following to your `.pretterrc` file ```json { "overrides": [ { "files": ["tsconfig.json", "jsconfig.json"], "options": { "parser": "jsonc" } } ] } ``` ``` ```Configuration
📅 Schedule: Branch creation - "after 4pm on thursday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate. View repository job log here.