Skip to main content

The JavaScript Standard Style tool for linting and fixing JavaScript code.

# To lint all JavaScript source files in the current directory:
standard

# To lint specific JavaScript file(s):
standard <path/to/file(s)>

# To apply automatic fixes during linting:
standard --fix

# To declare any available global variables:
standard --global <variable>

# To use a custom ESLint plugin when linting:
standard --plugin <plugin>

# To use a custom JS parser when linting:
standard --parser <parser>

# To use a custom ESLint environment when linting:
standard --env <environment>