GJS Lint - Is there a way to lint in WebStorm IDE


Is there a linter for GJS? I am using the Webstorm IDE and it is unable to lint any GJS modules.

Sorry for being so naive, I am not very familiar with the JS ecosystem.

1 Like

Hi, and welcome! There is no specific linter, but we recommend using eslint. Here is the configuration file that we use for linting the internal code in GJS. You may want to replace it or extend it depending on your application. For example, here is the extra configuration used in gnome-shell.

Iā€™m not familiar with the Webstorm IDE, maybe they have their own documentation on how to get it working with eslint?


Thank you for the prompt reply. I will try this out.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.