neuroanatomy / eslint-config-naat

Style rules for js code at NAAT
0 stars 2 forks source link

Use latest ecmascript parser #9

Closed dhovart closed 2 years ago

dhovart commented 2 years ago

As the title says :)

ntraut commented 2 years ago

Hello, I don't really see the point of using the latest latest ecmascript parser. We already define the ecmascript version we want to use in the env parameter (currently there is a redundancy with es6 and es2017, it should be only es2017). If we need newer es features, why not simply modify this? And in addition, is not it a bit dangerous to set it to latest, why not setting it to es2022 if we really want the newest features (in the risk of making apps incompatibles with browsers which are not the very newest)?