Closed renovate[bot] closed 7 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 72.16%. Comparing base (
ae2fd46
) to head (fb91634
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This PR contains the following updates:
^20.11.13
->^20.11.24
^6.20.0
->^6.21.0
^6.20.0
->^6.21.0
^1.2.2
->^1.3.1
^0.20.0
->^0.20.1
^8.56.0
->^8.57.0
^4.10.1
->^4.10.2
3.2.4
->3.2.5
^1.2.2
->^1.3.1
Release Notes
typescript-eslint/typescript-eslint (@typescript-eslint/eslint-plugin)
### [`v6.21.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#6210-2024-02-05) [Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v6.20.0...v6.21.0) ##### 🚀 Features - export plugin metadata - allow `parserOptions.project: false` - **eslint-plugin:** add rule prefer-find ##### 🩹 Fixes - **eslint-plugin:** \[no-unused-vars] don't report on types referenced in export assignment expression - **eslint-plugin:** \[switch-exhaustiveness-check] better support for intersections, infinite types, non-union values - **eslint-plugin:** \[consistent-type-imports] dont report on types used in export assignment expressions - **eslint-plugin:** \[no-unnecessary-condition] handle left-hand optional with exactOptionalPropertyTypes option - **eslint-plugin:** \[class-literal-property-style] allow getter when same key setter exists - **eslint-plugin:** \[no-unnecessary-type-assertion] provide valid fixes for assertions with extra tokens before `as` keyword ##### ❤️ Thank You - auvred - Brad Zacher - Kirk Waiblinger - Pete Gonzalez - YeonJuan You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning) and [releases](https://main--typescript-eslint.netlify.app/users/releases) on our website.typescript-eslint/typescript-eslint (@typescript-eslint/parser)
### [`v6.21.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/parser/CHANGELOG.md#6210-2024-02-05) [Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v6.20.0...v6.21.0) ##### 🚀 Features - allow `parserOptions.project: false` ##### ❤️ Thank You - auvred - Brad Zacher - Kirk Waiblinger - Pete Gonzalez - YeonJuan You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning) and [releases](https://main--typescript-eslint.netlify.app/users/releases) on our website.vitest-dev/vitest (@vitest/coverage-v8)
### [`v1.3.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v1.3.1) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v1.3.0...v1.3.1) ##### 🚀 Features - **vitest**: Expose parseCLI method - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5248](https://togithub.com/vitest-dev/vitest/issues/5248) [(c793a)](https://togithub.com/vitest-dev/vitest/commit/c793a136) - This feature is not affected by SemVer because it is part of an [experimental API](https://vitest.dev/advanced/api.html). ##### 🐞 Bug Fixes - Add task tests iteratively - by [@DerYeger](https://togithub.com/DerYeger) in [https://github.com/vitest-dev/vitest/issues/5235](https://togithub.com/vitest-dev/vitest/issues/5235) [(38155)](https://togithub.com/vitest-dev/vitest/commit/38155548) - **coverage**: Ignore generated TS decorators - by [@AriPerkkio](https://togithub.com/AriPerkkio) and [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5206](https://togithub.com/vitest-dev/vitest/issues/5206) [(a2804)](https://togithub.com/vitest-dev/vitest/commit/a280451b) - **ui**: Auto reload coverage iframe after test run - by [@hi-ogawa](https://togithub.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/5242](https://togithub.com/vitest-dev/vitest/issues/5242) [(5376d)](https://togithub.com/vitest-dev/vitest/commit/5376d5be) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v1.3.0...v1.3.1) ### [`v1.3.0`](https://togithub.com/vitest-dev/vitest/releases/tag/v1.3.0) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v1.2.2...v1.3.0) ##### 🚀 Features - Deprecate watchExclude - by [@patak-dev](https://togithub.com/patak-dev) in [https://github.com/vitest-dev/vitest/issues/5171](https://togithub.com/vitest-dev/vitest/issues/5171) [(82885)](https://togithub.com/vitest-dev/vitest/commit/828858f8) - **browser**: - Run test files in isolated iframes - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5036](https://togithub.com/vitest-dev/vitest/issues/5036) [(4f401)](https://togithub.com/vitest-dev/vitest/commit/4f40177e) - **config**: - Add `snapshotSerializers` option - by [@fenghan34](https://togithub.com/fenghan34) in [https://github.com/vitest-dev/vitest/issues/5092](https://togithub.com/vitest-dev/vitest/issues/5092) [(5b102)](https://togithub.com/vitest-dev/vitest/commit/5b1021da) - **reporters**: - Support custom options - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5111](https://togithub.com/vitest-dev/vitest/issues/5111) [(fec9c)](https://togithub.com/vitest-dev/vitest/commit/fec9ca0b) - **runner**: - Support automatic fixtures - by [@fenghan34](https://togithub.com/fenghan34) and [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5102](https://togithub.com/vitest-dev/vitest/issues/5102) [(0441f)](https://togithub.com/vitest-dev/vitest/commit/0441f761) - **ui**: - Save splitpanes size to local storage - by [@posva](https://togithub.com/posva) in [https://github.com/vitest-dev/vitest/issues/5166](https://togithub.com/vitest-dev/vitest/issues/5166) [(c28b4)](https://togithub.com/vitest-dev/vitest/commit/c28b4c26) - **vitest**: - Add onTestFinished hook - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5128](https://togithub.com/vitest-dev/vitest/issues/5128) [(6f5b4)](https://togithub.com/vitest-dev/vitest/commit/6f5b42b7) - Add github actions reporter - by [@hi-ogawa](https://togithub.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/5093](https://togithub.com/vitest-dev/vitest/issues/5093) [(40afb)](https://togithub.com/vitest-dev/vitest/commit/40afbe3a) - Expose jsdom global if jsdom environment is enabled - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5155](https://togithub.com/vitest-dev/vitest/issues/5155) [(567d2)](https://togithub.com/vitest-dev/vitest/commit/567d20b9) - Add new CLI options - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5163](https://togithub.com/vitest-dev/vitest/issues/5163) [(4e179)](https://togithub.com/vitest-dev/vitest/commit/4e179426) - "test" accepts options object as the second parameter - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5142](https://togithub.com/vitest-dev/vitest/issues/5142) [(7d9b1)](https://togithub.com/vitest-dev/vitest/commit/7d9b1fb0) - **vm**: - Support wasm module - by [@hi-ogawa](https://togithub.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/5131](https://togithub.com/vitest-dev/vitest/issues/5131) [(5ed53)](https://togithub.com/vitest-dev/vitest/commit/5ed537f0) ##### 🐞 Bug Fixes - Fix sourcemap in vm pools - by [@hi-ogawa](https://togithub.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/5063](https://togithub.com/vitest-dev/vitest/issues/5063) [(81105)](https://togithub.com/vitest-dev/vitest/commit/8110540a) - Don't optimize react/jsx-runtime by default when running in Node - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5079](https://togithub.com/vitest-dev/vitest/issues/5079) [(0d2bf)](https://togithub.com/vitest-dev/vitest/commit/0d2bfeac) - Rpc timeout error messages to include caller - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5103](https://togithub.com/vitest-dev/vitest/issues/5103) [(a6e04)](https://togithub.com/vitest-dev/vitest/commit/a6e04bd8) - Requires fixed version across the monorepo - by [@antfu](https://togithub.com/antfu) in [https://github.com/vitest-dev/vitest/issues/5208](https://togithub.com/vitest-dev/vitest/issues/5208) [(68f51)](https://togithub.com/vitest-dev/vitest/commit/68f51961) - Prevent merging of `poolOptions` - by [@penalosa](https://togithub.com/penalosa) in [https://github.com/vitest-dev/vitest/issues/5221](https://togithub.com/vitest-dev/vitest/issues/5221) [(bc5b2)](https://togithub.com/vitest-dev/vitest/commit/bc5b2d04) - **browser**: - Don't exclude node builtins from optimization - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5082](https://togithub.com/vitest-dev/vitest/issues/5082) [(714c9)](https://togithub.com/vitest-dev/vitest/commit/714c911f) - Support `coverage.reportsDirectory` with multiple directories - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5056](https://togithub.com/vitest-dev/vitest/issues/5056) [(ae73f)](https://togithub.com/vitest-dev/vitest/commit/ae73f273) - **cli**: - Parse `--browser=evanw/esbuild (esbuild)
### [`v0.20.1`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#0201) [Compare Source](https://togithub.com/evanw/esbuild/compare/v0.20.0...v0.20.1) - Fix a bug with the CSS nesting transform ([#3648](https://togithub.com/evanw/esbuild/issues/3648)) This release fixes a bug with the CSS nesting transform for older browsers where the generated CSS could be incorrect if a selector list contained a pseudo element followed by another selector. The bug was caused by incorrectly mutating the parent rule's selector list when filtering out pseudo elements for the child rules: ```css /* Original code */ .foo { &:after, & .bar { color: red; } } /* Old output (with --supported:nesting=false) */ .foo .bar, .foo .bar { color: red; } /* New output (with --supported:nesting=false) */ .foo:after, .foo .bar { color: red; } ``` - Constant folding for JavaScript inequality operators ([#3645](https://togithub.com/evanw/esbuild/issues/3645)) This release introduces constant folding for the `< > <= >=` operators. The minifier will now replace these operators with `true` or `false` when both sides are compile-time numeric or string constants: ```js // Original code console.log(1 < 2, '🍕' > '🧀') // Old output (with --minify) console.log(1<2,"🍕">"🧀"); // New output (with --minify) console.log(!0,!1); ``` - Better handling of `__proto__` edge cases ([#3651](https://togithub.com/evanw/esbuild/pull/3651)) JavaScript object literal syntax contains a special case where a non-computed property with a key of `__proto__` sets the prototype of the object. This does not apply to computed properties or to properties that use the shorthand property syntax introduced in ES6. Previously esbuild didn't correctly preserve the "sets the prototype" status of properties inside an object literal, meaning a property that sets the prototype could accidentally be transformed into one that doesn't and vice versa. This has now been fixed: ```js // Original code function foo(__proto__) { return { __proto__: __proto__ } // Note: sets the prototype } function bar(__proto__, proto) { { let __proto__ = proto return { __proto__ } // Note: doesn't set the prototype } } // Old output function foo(__proto__) { return { __proto__ }; // Note: no longer sets the prototype (WRONG) } function bar(__proto__, proto) { { let __proto__2 = proto; return { __proto__: __proto__2 }; // Note: now sets the prototype (WRONG) } } // New output function foo(__proto__) { return { __proto__: __proto__ }; // Note: sets the prototype (correct) } function bar(__proto__, proto) { { let __proto__2 = proto; return { ["__proto__"]: __proto__2 }; // Note: doesn't set the prototype (correct) } } ``` - Fix cross-platform non-determinism with CSS color space transformations ([#3650](https://togithub.com/evanw/esbuild/issues/3650)) The Go compiler takes advantage of "fused multiply and add" (FMA) instructions on certain processors which do the operation `x*y + z` without intermediate rounding. This causes esbuild's CSS color space math to differ on different processors (currently `ppc64le` and `s390x`), which breaks esbuild's guarantee of deterministic output. To avoid this, esbuild's color space math now inserts a `float64()` cast around every single math operation. This tells the Go compiler not to use the FMA optimization. - Fix a crash when resolving a path from a directory that doesn't exist ([#3634](https://togithub.com/evanw/esbuild/issues/3634)) This release fixes a regression where esbuild could crash when resolving an absolute path if the source directory for the path resolution operation doesn't exist. While this situation doesn't normally come up, it could come up when running esbuild concurrently with another operation that mutates the file system as esbuild is doing a build (such as using `git` to switch branches). The underlying problem was a regression that was introduced in version 0.18.0.eslint/eslint (eslint)
### [`v8.57.0`](https://togithub.com/eslint/eslint/releases/tag/v8.57.0) [Compare Source](https://togithub.com/eslint/eslint/compare/v8.56.0...v8.57.0) #### Features - [`1120b9b`](https://togithub.com/eslint/eslint/commit/1120b9b7b97f10f059d8b7ede19de2572f892366) feat: Add loadESLint() API method for v8 ([#18098](https://togithub.com/eslint/eslint/issues/18098)) (Nicholas C. Zakas) - [`dca7d0f`](https://togithub.com/eslint/eslint/commit/dca7d0f1c262bc72310147bcefe1d04ecf60acbc) feat: Enable `eslint.config.mjs` and `eslint.config.cjs` ([#18066](https://togithub.com/eslint/eslint/issues/18066)) (Nitin Kumar) #### Bug Fixes - [`2196d97`](https://togithub.com/eslint/eslint/commit/2196d97094ba94d6d750828879a29538d1600de5) fix: handle absolute file paths in `FlatRuleTester` ([#18064](https://togithub.com/eslint/eslint/issues/18064)) (Nitin Kumar) - [`69dd1d1`](https://togithub.com/eslint/eslint/commit/69dd1d1387b7b53617548d1f9f2c149f179e6e17) fix: Ensure config keys are printed for config errors ([#18067](https://togithub.com/eslint/eslint/issues/18067)) (Nitin Kumar) - [`9852a31`](https://togithub.com/eslint/eslint/commit/9852a31edcf054bd5d15753ef18e2ad3216b1b71) fix: deep merge behavior in flat config ([#18065](https://togithub.com/eslint/eslint/issues/18065)) (Nitin Kumar) - [`4c7e9b0`](https://togithub.com/eslint/eslint/commit/4c7e9b0b539ba879ac1799e81f3b6add2eed4b2f) fix: allow circular references in config ([#18056](https://togithub.com/eslint/eslint/issues/18056)) (Milos Djermanovic) #### Documentation - [`84922d0`](https://togithub.com/eslint/eslint/commit/84922d0bfa10689a34a447ab8e55975ff1c1c708) docs: Show prerelease version in dropdown ([#18139](https://togithub.com/eslint/eslint/issues/18139)) (Nicholas C. Zakas) - [`5b8c363`](https://togithub.com/eslint/eslint/commit/5b8c3636a3d7536535a6878eca0e5b773e4829d4) docs: Switch to Ethical Ads ([#18117](https://togithub.com/eslint/eslint/issues/18117)) (Milos Djermanovic) - [`77dbfd9`](https://togithub.com/eslint/eslint/commit/77dbfd9887b201a46fc68631cbde50c08e1a8dbf) docs: show NEXT in version selectors ([#18052](https://togithub.com/eslint/eslint/issues/18052)) (Milos Djermanovic) #### Chores - [`1813aec`](https://togithub.com/eslint/eslint/commit/1813aecc4660582b0678cf32ba466eb9674266c4) chore: upgrade [@eslint/js](https://togithub.com/eslint/js)[@8](https://togithub.com/8).57.0 ([#18143](https://togithub.com/eslint/eslint/issues/18143)) (Milos Djermanovic) - [`5c356bb`](https://togithub.com/eslint/eslint/commit/5c356bb0c6f53c570224f8e9f02c4baca8fc6d2f) chore: package.json update for [@eslint/js](https://togithub.com/eslint/js) release (Jenkins) - [`f4a1fe2`](https://togithub.com/eslint/eslint/commit/f4a1fe2e45aa1089fe775290bf530de82f34bf16) test: add more tests for ignoring files and directories ([#18068](https://togithub.com/eslint/eslint/issues/18068)) (Nitin Kumar) - [`42c0aef`](https://togithub.com/eslint/eslint/commit/42c0aefaf6ea8b998b1c6db61906a79c046d301a) ci: Enable CI for `v8.x` branch ([#18047](https://togithub.com/eslint/eslint/issues/18047)) (Milos Djermanovic)github/eslint-plugin-github (eslint-plugin-github)
### [`v4.10.2`](https://togithub.com/github/eslint-plugin-github/releases/tag/v4.10.2) [Compare Source](https://togithub.com/github/eslint-plugin-github/compare/v4.10.1...v4.10.2) #### What's Changed ##### Functionality - Update no-then.md by [@cefn](https://togithub.com/cefn) in [https://github.com/github/eslint-plugin-github/pull/503](https://togithub.com/github/eslint-plugin-github/pull/503) - fix `a11y-svg-has-accessible-name` considering whitespace JSXText by [@nnmrts](https://togithub.com/nnmrts) in [https://github.com/github/eslint-plugin-github/pull/508](https://togithub.com/github/eslint-plugin-github/pull/508) ##### Dependancy updates - chore(deps): bump the all-dependencies group with 3 updates by [@dependabot](https://togithub.com/dependabot) in [https://github.com/github/eslint-plugin-github/pull/482](https://togithub.com/github/eslint-plugin-github/pull/482) - chore(deps): bump the all-dependencies group with 3 updates by [@dependabot](https://togithub.com/dependabot) in [https://github.com/github/eslint-plugin-github/pull/484](https://togithub.com/github/eslint-plugin-github/pull/484) - chore(deps): bump the all-dependencies group with 3 updates by [@dependabot](https://togithub.com/dependabot) in [https://github.com/github/eslint-plugin-github/pull/485](https://togithub.com/github/eslint-plugin-github/pull/485) - chore(deps): bump the all-dependencies group with 4 updates by [@dependabot](https://togithub.com/dependabot) in [https://github.com/github/eslint-plugin-github/pull/486](https://togithub.com/github/eslint-plugin-github/pull/486) - chore(deps): bump the all-dependencies group with 3 updates by [@dependabot](https://togithub.com/dependabot) in [https://github.com/github/eslint-plugin-github/pull/487](https://togithub.com/github/eslint-plugin-github/pull/487) - chore(deps): bump the all-dependencies group with 3 updates by [@dependabot](https://togithub.com/dependabot) in [https://github.com/github/eslint-plugin-github/pull/489](https://togithub.com/github/eslint-plugin-github/pull/489) - chore(deps): bump actions/setup-node from 3 to 4 by [@dependabot](https://togithub.com/dependabot) in [https://github.com/github/eslint-plugin-github/pull/488](https://togithub.com/github/eslint-plugin-github/pull/488) - chore(deps): bump the all-dependencies group with 5 updates by [@dependabot](https://togithub.com/dependabot) in [https://github.com/github/eslint-plugin-github/pull/490](https://togithub.com/github/eslint-plugin-github/pull/490) - chore(deps): bump the all-dependencies group with 2 updates by [@dependabot](https://togithub.com/dependabot) in [https://github.com/github/eslint-plugin-github/pull/491](https://togithub.com/github/eslint-plugin-github/pull/491) - chore(deps): bump the all-dependencies group with 5 updates by [@dependabot](https://togithub.com/dependabot) in [https://github.com/github/eslint-plugin-github/pull/492](https://togithub.com/github/eslint-plugin-github/pull/492) - chore(deps): bump the all-dependencies group with 2 updates by [@dependabot](https://togithub.com/dependabot) in [https://github.com/github/eslint-plugin-github/pull/493](https://togithub.com/github/eslint-plugin-github/pull/493) - chore(deps): bump the all-dependencies group with 4 updates by [@dependabot](https://togithub.com/dependabot) in [https://github.com/github/eslint-plugin-github/pull/494](https://togithub.com/github/eslint-plugin-github/pull/494) - chore(deps): bump the all-dependencies group with 3 updates by [@dependabot](https://togithub.com/dependabot) in [https://github.com/github/eslint-plugin-github/pull/495](https://togithub.com/github/eslint-plugin-github/pull/495) - chore(deps): bump the all-dependencies group with 5 updates by [@dependabot](https://togithub.com/dependabot) in [https://github.com/github/eslint-plugin-github/pull/496](https://togithub.com/github/eslint-plugin-github/pull/496) - chore(deps): bump the all-dependencies group with 4 updates by [@dependabot](https://togithub.com/dependabot) in [https://github.com/github/eslint-plugin-github/pull/498](https://togithub.com/github/eslint-plugin-github/pull/498) - chore(deps): bump the all-dependencies group with 2 updates by [@dependabot](https://togithub.com/dependabot) in [https://github.com/github/eslint-plugin-github/pull/499](https://togithub.com/github/eslint-plugin-github/pull/499) - chore(deps): bump the all-dependencies group with 5 updates by [@dependabot](https://togithub.com/dependabot) in [https://github.com/github/eslint-plugin-github/pull/500](https://togithub.com/github/eslint-plugin-github/pull/500) - chore(deps): bump the all-dependencies group with 3 updates by [@dependabot](https://togithub.com/dependabot) in [https://github.com/github/eslint-plugin-github/pull/501](https://togithub.com/github/eslint-plugin-github/pull/501) - chore(deps): bump the all-dependencies group with 3 updates by [@dependabot](https://togithub.com/dependabot) in [https://github.com/github/eslint-plugin-github/pull/502](https://togithub.com/github/eslint-plugin-github/pull/502) - chore(deps): bump the all-dependencies group with 3 updates by [@dependabot](https://togithub.com/dependabot) in [https://github.com/github/eslint-plugin-github/pull/504](https://togithub.com/github/eslint-plugin-github/pull/504) - chore(deps): bump the all-dependencies group with 5 updates by [@dependabot](https://togithub.com/dependabot) in [https://github.com/github/eslint-plugin-github/pull/507](https://togithub.com/github/eslint-plugin-github/pull/507) - chore(deps): bump the all-dependencies group with 3 updates by [@dependabot](https://togithub.com/dependabot) in [https://github.com/github/eslint-plugin-github/pull/509](https://togithub.com/github/eslint-plugin-github/pull/509) #### New Contributors - [@cefn](https://togithub.com/cefn) made their first contribution in [https://github.com/github/eslint-plugin-github/pull/503](https://togithub.com/github/eslint-plugin-github/pull/503) - [@nnmrts](https://togithub.com/nnmrts) made their first contribution in [https://github.com/github/eslint-plugin-github/pull/508](https://togithub.com/github/eslint-plugin-github/pull/508) **Full Changelog**: https://github.com/github/eslint-plugin-github/compare/v4.10.1...v4.10.2prettier/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 - "before 4am on the first day of the month" in timezone Pacific/Auckland, 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.