DOKK / manpages / debian 12 / eslint / eslint.1.en
ESLINT(1) User Commands ESLINT(1)

eslint - JavaScript

eslint [options] file.js [file.js] [dir]

Disable use of configuration from .eslintrc.*
Use this configuration, overriding .eslintrc.* config options if present
Specify environments
Specify JavaScript file extensions - default: .js
Define global variables
Specify the parser to be used
Specify parser options
A folder where plugins should be resolved from, CWD by default

Use additional rules from this directory
Specify plugins
Specify rules

Automatically fix problems
Automatically fix problems without saving the changes to the file system
Specify the types of fixes to apply (problem, suggestion, layout)

Specify path of ignore file
Disable use of ignore files and patterns
Pattern of files to ignore (in addition to those in .eslintignore)

Lint code provided on <STDIN> - default: false
Specify filename to process STDIN as

Report errors only - default: false
Number of warnings to trigger nonzero exit code - default: -1

Specify file to write report to
Use a specific output format - default: stylish
Force enabling/disabling of color

Prevent comments from changing config or rules
Adds reported errors for unused eslint-disable directives

Only check changed files - default: false
Path to the cache file. Deprecated: use --cache-location - default: .eslintcache
Path to the cache file or directory

Run config initialization wizard - default: false
Output debugging information
Show help
Output the version number
Print the configuration for the given file
June 2022 eslint v6.4.0