LinuxCommandLibrary

standard

Zero-configuration JavaScript style linter

TLDR

Check code

$ standard
copy
Fix automatically
$ standard --fix
copy
Check specific files
$ standard [file1.js] [file2.js]
copy
Use parser
$ standard --parser [babel-eslint]
copy
Verbose output
$ standard --verbose
copy
Global install run
$ standard --global [package-name]
copy

SYNOPSIS

standard [--fix] [--parser name] [options] [files]

DESCRIPTION

standard is a zero-configuration JavaScript linter and formatter that enforces a fixed set of style rules. Built on top of ESLint, it eliminates the need for project-specific .eslintrc files by providing a single, opinionated style guide that includes rules like no semicolons, 2-space indentation, and single quotes.
The --fix flag automatically corrects fixable issues in place. The tool can lint files passed as arguments or recursively scan the current directory. Custom parsers like babel-eslint can be specified for projects using experimental JavaScript syntax.

PARAMETERS

--fix

Auto-fix issues.
--parser NAME
Custom parser.
--verbose
Show rule names.
--global PKG
Global packages.
--env ENV
Environment globals.
--stdin
Lint from stdin.

CAVEATS

Fixed style rules. No customization. Semicolon-free style.

HISTORY

standard was created by Feross Aboukhadijeh as a zero-configuration JavaScript linter enforcing a single style.

SEE ALSO

eslint(1), prettier(1), jshint(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community