snippetbashTip
standard — The JavaScript Standard Style tool for linting and fixing JavaScript code. More information: <https:
Viewed 0 times
thecommandstylejavascriptclitoolstandard
Problem
How to use the
standard command: The JavaScript Standard Style tool for linting and fixing JavaScript code. More information: <https://standardjs.com/#usage>.Solution
standard — The JavaScript Standard Style tool for linting and fixing JavaScript code. More information: <https://standardjs.com/#usage>.Lint all JavaScript source files in the current directory:
standardLint specific JavaScript file(s):
standard {{path/to/file1 path/to/file2 ...}}Apply automatic fixes during linting:
standard --fixDeclare any available global variables:
standard --global {{variable}}Use a custom ESLint plugin when linting:
standard --plugin {{plugin}}Use a custom JS parser when linting:
standard --parser {{parser}}Use a custom ESLint environment when linting:
standard --env {{environment}}Code Snippets
Lint all JavaScript source files in the current directory
standardLint specific JavaScript file(s)
standard {{path/to/file1 path/to/file2 ...}}Apply automatic fixes during linting
standard --fixDeclare any available global variables
standard --global {{variable}}Use a custom ESLint plugin when linting
standard --plugin {{plugin}}Context
tldr-pages: common/standard
Revisions (0)
No revisions yet.