proposal-class-fields icon indicating copy to clipboard operation
proposal-class-fields copied to clipboard

Tooling implementation status

Open vjpr opened this issue 8 years ago • 12 comments

Thought it would be a good idea to track that status of tools supporting this feature.

  • [x] Flow - https://github.com/facebook/flow/releases/tag/v0.54.0
  • [x] TypeScript - https://github.com/Microsoft/TypeScript/issues/9950
  • [x] Babel (7.0.0-beta.48) - https://github.com/babel/babel/pull/7842
  • [x] IntelliJ/Webstorm - https://youtrack.jetbrains.com/issue/WEB-27687
  • [ ] Atom
  • [x] VSCode
  • [x] Sublime - https://github.com/sublimehq/Packages/pull/1292
  • [x] Acorn - https://github.com/acornjs/acorn-class-fields
  • [ ] Espree
  • [ ] Esprima

See all proposals

vjpr avatar Nov 08 '17 11:11 vjpr

Should we open acorn, espree and esprima feature requests?

alippai avatar Nov 18 '17 23:11 alippai

@alippai My understanding was that a lot of tooling had a policy of not implementing until Stage 4. This differs a bit from the policies of a number of web browsers, which may start implementing at Stage 3 and feel comfortable turning it on by default at Stage 4 (though some are more aggressive, and no one has everything in Stage 3 implemented). I'd recommend to tooling projects to adopt a similar policy. However, projects can do whatever they want; if they have a different policy, probably best to respect that in bug reports and keep a policy change discussion separate from these particular features.

littledan avatar Nov 21 '17 11:11 littledan

Oh, indeed. You are totally right, stage 4 is required for acorn and espree :)

alippai avatar Nov 21 '17 11:11 alippai

As I am using many stage-x features in my projects, I coded a syntax for Sublime Text 3 https://github.com/borela/naomi which highlights even stage-0 features.

borela avatar Nov 22 '17 14:11 borela

Sublime's core JavaScript syntax now implements class fields (as of PR 1292).

Thom1729 avatar Dec 02 '17 06:12 Thom1729

acorn now has class fields support through acorn-class-fields.

adrianheine avatar Jan 13 '18 18:01 adrianheine

This is all great to hear! Does anyone want to post a summary in the README? PRs welcome.

littledan avatar Jan 15 '18 19:01 littledan

WebStorm has added support for class fields in the latest EAP

ephys avatar Mar 01 '18 13:03 ephys

@vjpr I assume this urgently needs a refresh?

franktopel avatar May 08 '20 07:05 franktopel

@franktopel What updates do you see as needed?

littledan avatar May 08 '20 08:05 littledan

As far as I can see the current stable version 1.45.0 of VS Code already supports this syntax?

grafik

franktopel avatar May 08 '20 13:05 franktopel

I checked the boxes for TypeScript and VSCode. Thanks for the ping. Any other updates needed?

littledan avatar May 08 '20 14:05 littledan