Skip to content


standard documentation

standard - GitHub

Configuration in Mega-Linter

Variable Description Default value
JAVASCRIPT_DEFAULT_STYLE For standard to be active, JAVASCRIPT_DEFAULT_STYLE must be standard standard
JAVASCRIPT_STANDARD_ARGUMENTS User custom arguments to add in linter CLI call
Ex: -s --foo "bar"
Ex: (src|lib)
Include every file
Ex: (test|examples)
Exclude no file
JAVASCRIPT_STANDARD_FILE_EXTENSIONS Allowed file extensions. "*" matches any extension, "" matches empty extension. Empty list excludes all files
Ex: [".py", ""]
JAVASCRIPT_STANDARD_FILE_NAMES_REGEX File name regex filters. Regular expression list for filtering files by their base names using regex full match. Empty list includes all files
Ex: ["Dockerfile(-.+)?", "Jenkinsfile"]
Include every file
JAVASCRIPT_STANDARD_DISABLE_ERRORS Run linter but consider errors as warnings false

IDE Integration

Use standard in your favorite IDE to catch errors before Mega-Linter !

IDE Extension Name Install
Atom linter-js-standard Visit Web Site
Atom linter-js-standard-engine Visit Web Site
Atom standard-formatter Visit Web Site
Brackets brackets-standard Visit Web Site
IDEA native support Visit Web Site
Sublime Text SublimeLinter-contrib-standard Visit Web Site
Sublime Text StandardFormat Visit Web Site
Visual Studio Code vscode-standardjs Install in VsCode

Mega-Linter Flavours

This linter is available in the following flavours

Flavor Description Embedded linters Info
all Default Mega-Linter Flavor 83 Docker Image Size (tag) Docker Pulls
javascript Optimized for JAVASCRIPT or TYPESCRIPT based projects 45 Docker Image Size (tag) Docker Pulls

Behind the scenes

How are identified applicable files

  • File extensions: .js

Example calls

standard myfile.js
standard --fix myfile.js

Help content

standard - Use JavaScript Standard Style (

    standard <flags> [FILES...]

    If FILES is omitted, all JavaScript source files (*.js, *.jsx, *.mjs, *.cjs)
    in the current working directory are checked, recursively.

    Certain paths (node_modules/, coverage/, vendor/, *.min.js, bundle.js, and
    files/folders that begin with '.' like .git/) are automatically ignored.

    Paths in a project's root .gitignore file are also automatically ignored.

        --fix       Automatically fix problems
    -v, --verbose   Show rule names for errors (to ignore specific rules)
        --version   Show current version
    -h, --help      Show usage information

Flags (advanced):
        --stdin     Read file text from stdin
        --global    Declare global variable
        --plugin    Use custom eslint plugin
        --env       Use custom eslint environment
        --parser    Use custom js parser (e.g. babel-eslint)

Installation on mega-linter Docker image

Example success log

Results of standard linter (version 15.0.1)
See documentation on

[SUCCESS] .automation/test/javascript/javascript_good_1.js

Example error log

Results of standard linter (version 15.0.1)
See documentation on

[ERROR] .automation/test/javascript/javascript_bad_1.js
    standard: Use JavaScript Standard Style (
      .automation/test/javascript/javascript_bad_1.js:4:40: Parsing error: Unterminated regular expression