eslint/eslint
### [`v7.28.0`](https://togithub.com/eslint/eslint/releases/v7.28.0)
[Compare Source](https://togithub.com/eslint/eslint/compare/v7.27.0...v7.28.0)
- [`1237705`](https://togithub.com/eslint/eslint/commit/1237705dd08c209c5e3136045ec51a4ba87a3abe) Upgrade: [@eslint/eslintrc](https://togithub.com/eslint/eslintrc) to 0.4.2 ([#14672](https://togithub.com/eslint/eslint/issues/14672)) (Milos Djermanovic)
- [`123fb86`](https://togithub.com/eslint/eslint/commit/123fb8648731c2c23313c544ffa1872d3024fe68) Docs: Add Feedback Needed triage description ([#14670](https://togithub.com/eslint/eslint/issues/14670)) (Nicholas C. Zakas)
- [`c545163`](https://togithub.com/eslint/eslint/commit/c5451635b4e89827cfc8d8d77083647c74506e42) Update: support multiline /*eslint-env*/ directives (fixes [#14652](https://togithub.com/eslint/eslint/issues/14652)) ([#14660](https://togithub.com/eslint/eslint/issues/14660)) (薛定谔的猫)
- [`8d1e75a`](https://togithub.com/eslint/eslint/commit/8d1e75a31b3e3d67130709a219bdd07ce6f3cf74) Upgrade: glob-parent version in package.json ([#14658](https://togithub.com/eslint/eslint/issues/14658)) (Hamza Najeeb)
- [`1f048cb`](https://togithub.com/eslint/eslint/commit/1f048cb0eec660d2052f1758f4b2ad7b1cb424e1) Fix: no-implicit-coercion false positive with `String()` (fixes [#14623](https://togithub.com/eslint/eslint/issues/14623)) ([#14641](https://togithub.com/eslint/eslint/issues/14641)) (Milos Djermanovic)
- [`d709abf`](https://togithub.com/eslint/eslint/commit/d709abfdde087325d4578b6709dc61040b8ca9d8) Chore: fix comment location in no-unused-vars ([#14648](https://togithub.com/eslint/eslint/issues/14648)) (Milos Djermanovic)
- [`e44ce0a`](https://togithub.com/eslint/eslint/commit/e44ce0a8acfaad513c385150c25e76e82a1b8f12) Fix: no-duplicate-imports allow unmergeable (fixes [#12758](https://togithub.com/eslint/eslint/issues/12758), fixes [#12760](https://togithub.com/eslint/eslint/issues/12760)) ([#14238](https://togithub.com/eslint/eslint/issues/14238)) (Soufiane Boutahlil)
- [`bb66a3d`](https://togithub.com/eslint/eslint/commit/bb66a3d91af426dac9a7ffdbe47bdbbc0ffd4dd7) New: add `getPhysicalFilename()` method to rule context (fixes [#11989](https://togithub.com/eslint/eslint/issues/11989)) ([#14616](https://togithub.com/eslint/eslint/issues/14616)) (Nitin Kumar)
- [`2e43dac`](https://togithub.com/eslint/eslint/commit/2e43dacd24337a82d4184fac9b44d497675f46ef) Docs: fix `no-sequences` example ([#14643](https://togithub.com/eslint/eslint/issues/14643)) (Nitin Kumar)
- [`958ff4e`](https://togithub.com/eslint/eslint/commit/958ff4e8a5102f204f1484d09985e28a79790996) Docs: add note for arrow functions in no-seq rule ([#14578](https://togithub.com/eslint/eslint/issues/14578)) (Nitin Kumar)
- [`e4f111b`](https://togithub.com/eslint/eslint/commit/e4f111b67d114adbf76a9c9dbb18fa4f49bc91b6) Fix: arrow-body-style crash with object pattern (fixes [#14633](https://togithub.com/eslint/eslint/issues/14633)) ([#14635](https://togithub.com/eslint/eslint/issues/14635)) (Milos Djermanovic)
- [`ec28b5a`](https://togithub.com/eslint/eslint/commit/ec28b5a2bdc69f34ce29d670f5e84d2446774a00) Chore: upgrade eslint-plugin-eslint-plugin ([#14590](https://togithub.com/eslint/eslint/issues/14590)) (薛定谔的猫)
- [`85a2725`](https://togithub.com/eslint/eslint/commit/85a2725b1fade5538e727102d9701ccb503e54d4) Docs: Update README team and sponsors (ESLint Jenkins)
prettier/prettier
### [`v2.3.1`](https://togithub.com/prettier/prettier/blob/master/CHANGELOG.md#231)
[Compare Source](https://togithub.com/prettier/prettier/compare/2.3.0...2.3.1)
[diff](https://togithub.com/prettier/prettier/compare/2.3.0...2.3.1)
##### Preserve attributes order for element node ([#10958](https://togithub.com/prettier/prettier/issues/10958) by [@dcyriller](https://togithub.com/dcyriller))
```handlebars
{{!-- Input --}}
{{!-- Prettier stable --}}
{{!-- Prettier main --}}
```
##### Track cursor position properly when it’s at the end of the range to format ([#10938](https://togithub.com/prettier/prettier/issues/10938) by [@j-f1](https://togithub.com/j-f1))
Previously, if the cursor was at the end of the range to format, it would simply be placed back at the end of the updated range.
Now, it will be repositioned if Prettier decides to add additional code to the end of the range (such as a semicolon).
```jsx
// Input (<|> represents the cursor)
const someVariable = myOtherVariable<|>
// range to format: ^^^^^^^^^^^^^^^
// Prettier stable
const someVariable = myOtherVariable;<|>
// range to format: ^^^^^^^^^^^^^^^
// Prettier main
const someVariable = myOtherVariable<|>;
// range to format: ^^^^^^^^^^^^^^^
```
##### Break the LHS of type alias that has complex type parameters ([#10901](https://togithub.com/prettier/prettier/issues/10901) by [@sosukesusuzki](https://togithub.com/sosukesusuzki))
```ts
// Input
type FieldLayoutWith<
T extends string,
S extends unknown = { width: string }
> = {
type: T;
code: string;
size: S;
};
// Prettier stable
type FieldLayoutWith =
{
type: T;
code: string;
size: S;
};
// Prettier main
type FieldLayoutWith<
T extends string,
S extends unknown = { width: string }
> = {
type: T;
code: string;
size: S;
};
```
##### Break the LHS of assignments that has complex type parameters ([#10916](https://togithub.com/prettier/prettier/issues/10916) by [@sosukesuzuki](https://togithub.com/sosukesuzuki))
```ts
// Input
const map: Map<
Function,
Map
> = new Map();
// Prettier stable
const map: Map> =
new Map();
// Prettier main
const map: Map<
Function,
Map
> = new Map();
```
##### Fix incorrectly wrapped arrow functions with return types ([#10940](https://togithub.com/prettier/prettier/issues/10940) by [@thorn0](https://togithub.com/thorn0))
```ts
// Input
longfunctionWithCall12("bla", foo, (thing: string): complex> => {
code();
});
// Prettier stable
longfunctionWithCall12("bla", foo, (thing: string): complex<
type
> => {
code();
});
// Prettier main
longfunctionWithCall12(
"bla",
foo,
(thing: string): complex> => {
code();
}
);
```
##### Support TypeScript 4.3 ([#10945](https://togithub.com/prettier/prettier/issues/10945) by [@sosukesuzuki](https://togithub.com/sosukesuzuki))
##### [`override` modifiers in class elements](https://devblogs.microsoft.com/typescript/announcing-typescript-4-3/#override)
```ts
class Foo extends {
override method() {}
}
```
##### [static index signatures (`[key: KeyType]: ValueType`) in classes](https://devblogs.microsoft.com/typescript/announcing-typescript-4-3/#static-index-signatures)
```ts
class Foo {
static [key: string]: Bar;
}
```
##### [`get` / `set` in type declarations](https://devblogs.microsoft.com/typescript/announcing-typescript-4-3/#separate-write-types)
```ts
interface Foo {
set foo(value);
get foo(): string;
}
```
##### Avoid breaking call expressions after assignments with complex type arguments ([#10949](https://togithub.com/prettier/prettier/issues/10949) by [@sosukesuzuki](https://togithub.com/sosukesuzuki))
```ts
// Input
const foo = call<{
prop1: string;
prop2: string;
prop3: string;
}>();
// Prettier stable
const foo =
call<{
prop1: string;
prop2: string;
prop3: string;
}>();
// Prettier main
const foo = call<{
prop1: string;
prop2: string;
prop3: string;
}>();
```
##### Fix order of `override` modifiers ([#10961](https://togithub.com/prettier/prettier/issues/10961) by [@sosukesuzuki](https://togithub.com/sosukesuzuki))
```ts
// Input
class Foo extends Bar {
abstract override foo: string;
}
// Prettier stable
class Foo extends Bar {
override abstract foo: string;
}
// Prettier main
class Foo extends Bar {
abstract override foo: string;
}
```
Configuration
📅 Schedule: 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 contains the following updates:
7.27.0
->7.28.0
2.3.0
->2.3.1
Release Notes
eslint/eslint
### [`v7.28.0`](https://togithub.com/eslint/eslint/releases/v7.28.0) [Compare Source](https://togithub.com/eslint/eslint/compare/v7.27.0...v7.28.0) - [`1237705`](https://togithub.com/eslint/eslint/commit/1237705dd08c209c5e3136045ec51a4ba87a3abe) Upgrade: [@eslint/eslintrc](https://togithub.com/eslint/eslintrc) to 0.4.2 ([#14672](https://togithub.com/eslint/eslint/issues/14672)) (Milos Djermanovic) - [`123fb86`](https://togithub.com/eslint/eslint/commit/123fb8648731c2c23313c544ffa1872d3024fe68) Docs: Add Feedback Needed triage description ([#14670](https://togithub.com/eslint/eslint/issues/14670)) (Nicholas C. Zakas) - [`c545163`](https://togithub.com/eslint/eslint/commit/c5451635b4e89827cfc8d8d77083647c74506e42) Update: support multiline /*eslint-env*/ directives (fixes [#14652](https://togithub.com/eslint/eslint/issues/14652)) ([#14660](https://togithub.com/eslint/eslint/issues/14660)) (薛定谔的猫) - [`8d1e75a`](https://togithub.com/eslint/eslint/commit/8d1e75a31b3e3d67130709a219bdd07ce6f3cf74) Upgrade: glob-parent version in package.json ([#14658](https://togithub.com/eslint/eslint/issues/14658)) (Hamza Najeeb) - [`1f048cb`](https://togithub.com/eslint/eslint/commit/1f048cb0eec660d2052f1758f4b2ad7b1cb424e1) Fix: no-implicit-coercion false positive with `String()` (fixes [#14623](https://togithub.com/eslint/eslint/issues/14623)) ([#14641](https://togithub.com/eslint/eslint/issues/14641)) (Milos Djermanovic) - [`d709abf`](https://togithub.com/eslint/eslint/commit/d709abfdde087325d4578b6709dc61040b8ca9d8) Chore: fix comment location in no-unused-vars ([#14648](https://togithub.com/eslint/eslint/issues/14648)) (Milos Djermanovic) - [`e44ce0a`](https://togithub.com/eslint/eslint/commit/e44ce0a8acfaad513c385150c25e76e82a1b8f12) Fix: no-duplicate-imports allow unmergeable (fixes [#12758](https://togithub.com/eslint/eslint/issues/12758), fixes [#12760](https://togithub.com/eslint/eslint/issues/12760)) ([#14238](https://togithub.com/eslint/eslint/issues/14238)) (Soufiane Boutahlil) - [`bb66a3d`](https://togithub.com/eslint/eslint/commit/bb66a3d91af426dac9a7ffdbe47bdbbc0ffd4dd7) New: add `getPhysicalFilename()` method to rule context (fixes [#11989](https://togithub.com/eslint/eslint/issues/11989)) ([#14616](https://togithub.com/eslint/eslint/issues/14616)) (Nitin Kumar) - [`2e43dac`](https://togithub.com/eslint/eslint/commit/2e43dacd24337a82d4184fac9b44d497675f46ef) Docs: fix `no-sequences` example ([#14643](https://togithub.com/eslint/eslint/issues/14643)) (Nitin Kumar) - [`958ff4e`](https://togithub.com/eslint/eslint/commit/958ff4e8a5102f204f1484d09985e28a79790996) Docs: add note for arrow functions in no-seq rule ([#14578](https://togithub.com/eslint/eslint/issues/14578)) (Nitin Kumar) - [`e4f111b`](https://togithub.com/eslint/eslint/commit/e4f111b67d114adbf76a9c9dbb18fa4f49bc91b6) Fix: arrow-body-style crash with object pattern (fixes [#14633](https://togithub.com/eslint/eslint/issues/14633)) ([#14635](https://togithub.com/eslint/eslint/issues/14635)) (Milos Djermanovic) - [`ec28b5a`](https://togithub.com/eslint/eslint/commit/ec28b5a2bdc69f34ce29d670f5e84d2446774a00) Chore: upgrade eslint-plugin-eslint-plugin ([#14590](https://togithub.com/eslint/eslint/issues/14590)) (薛定谔的猫) - [`85a2725`](https://togithub.com/eslint/eslint/commit/85a2725b1fade5538e727102d9701ccb503e54d4) Docs: Update README team and sponsors (ESLint Jenkins)prettier/prettier
### [`v2.3.1`](https://togithub.com/prettier/prettier/blob/master/CHANGELOG.md#231) [Compare Source](https://togithub.com/prettier/prettier/compare/2.3.0...2.3.1) [diff](https://togithub.com/prettier/prettier/compare/2.3.0...2.3.1) ##### Preserve attributes order for element node ([#10958](https://togithub.com/prettier/prettier/issues/10958) by [@dcyriller](https://togithub.com/dcyriller)) ```handlebars {{!-- Input --}}Configuration
📅 Schedule: 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 WhiteSource Renovate. View repository job log here.