prettier / eslint-config-prettier

Turns off all rules that are unnecessary or might conflict with Prettier.
MIT License
5.41k stars 254 forks source link

Support TypeScript 3.7 `declare` class fields #122

Closed ntucker closed 4 years ago

ntucker commented 4 years ago

https://github.com/prettier/prettier/issues/6661

Input:

class C extends B {
  declare p: 25
}

Output:

class C extends B {
  p: 25;
}

Expected behavior:

same as the input

ntucker commented 4 years ago

Does this not work just because a new version of prettier hasn't been released since that patch landed?

lydell commented 4 years ago

Yes.