Editor parsing error with static class properties


I have a project that uses static class properties via Babel’s transform-class-properties plugin. They compile correctly, but the editor treats them as errors.

Example: https://glitch.com/edit/#!/aboard-skull?path=src/controllers/hello_controller.js:4:17

Is there any way to work around this?



ah yeah so the editor uses eslint and it would require babel-eslint to remove that error :upside_down_face: will take note of this for next time we discuss working on linting in the editor!


Thanks, @jennschiffer!

It would be great if Glitch automatically used babel-eslint when appropriate or even allowed specifying it as the parser in an app’s .eslintrc file.

This has been tripping people up as they use Glitch to learn Stimulus, and that’s likely to increase now that you’re promoting it: https://twitter.com/glitch/status/960891384868802565 (thank you for that!! :v:️).


yes, it’s on our to-do list to add the ability for users to provide their own linting configuration :slight_smile:


Any progress on this? This is still a problem.