As Standard is based on ESLint, its support is implemented via WebStorm’s ESLint integration.
Enable linting with Standard via ESLint
If you open a project with
standard listed in its package.json file, WebStorm will enable linting with Standard automatically. Run
npm install to see warnings reported by Standard in the editor.
Apply code style rules
WebStorm will also suggest to set Standard code style for formatting.
Once you click Yes, the code style options available in WebStorm will be set the way Standard suggests.
Please note that Standard can report a wider range of code style issues than WebStorm can automatically fix.
Fix issues with WebStorm and ESLint
Some of the issues Standard reports can be fixed by Standard or ESLint (depending on what you’re using). Press Alt+Enter on the highlighted code in the editor and select Fix current file.
For some code quality issues, you will also see available quick-fix options provided by WebStorm. For example, for an undefined variable WebStorm will suggest to insert a declaration.
The WebStorm team