Just adding my +1 and following in case a solution comes along! I’ve got a super simple React ES7 boilerplate going, builds fine but the editor error is an eyesore
A solution came along You can now change the default linting rules in a project by adding a .eslintrc.json file to the project (docs here: https://eslint.org/docs/user-guide/configuring)
Is this possible to set up for “basic” (glitch-hello-website) projects? When I add a .eslintrc.json to a basic project the editor no longer provides syntax/etc checking.
Yes, I’m having that problem. The bullet in the gutter was nice, but I tried to install babel/eslint and I’ve lost the bullet for syntax errors now. I seem to get the bullets for .json files but not for nodejs files. Any help would be great.
Hi there, could you share a bit more detail on what you’ve added to your project, ideally with a screengrab or a link to it so that we can check it out?
Yes, I’m very new to all this although I’ve been developing apps since at least the Dark Ages. I’m coming from an old Visual Studio background so I’m trying to replicate some of the stuff I found helpful. I have tried to find answers here and using a search engine to no avail.
Ah ok thanks for sharing, I don’t believe we support actually setting the parser itself in the eslint config, although you can configure specific rules. We hope to provide more support for linting config at some point in future though!
Ah, ok. Then what did I do to break the bullet in the gutter on the editor? I’d be satisfied with getting my bullets back (and yes, there are usually a BUNCH of bullets when I’m coding).
(Surprised you are active so early in the morning although I guess you may be geographically located somewhere the sun is up already).
Ok, I did as suggested and removed the .eslintrc.json file. Now my parsing errors are being shown. I see that @Gareth posted a link to the configuration documentation. What I am trying to enable is the experimental class syntax via those configuration parameters. My code runs just fine (experimental features or not) but the parser indicates an error. I further get that Glitch doesn’t support the new experimental features yet but this post dates back over four years and I hoped (expected?) that in those four years Glitch might have found some time for supporting newer features as they come along, or at least after a “cooling off period” to allow for newer stuff to be “fixed”.