By default, the project editor uses ESLint to detect syntax errors; but you can customize this by adding an .eslintrc.json file to your project.
To help, we’ve created an example of a custom .eslintrc.json file within a Glitch project. You can use this .eslintrc.json file as a template to make your own.
In your project, create a new file and name it .eslintrc.json
Next, go to https://glitch.com/edit/#!/eslint-config and copy the code in the example .eslintrc.json file there
Now, paste this code into the new .eslintrc.json file that you created in your project
Update the rules to your liking
Type refresh in the project terminal and the project editor will lint your code based on your custom configuration! You’ll need to do this step any time you edit .eslintrc.json so that the editor’s linter will stay up to date with your configuration.