.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3. .TH ESLINT "1" "December 2023" "eslint v6.4.0" "User Commands" .SH NAME eslint \- JavaScript .SH DESCRIPTION eslint [options] file.js [file.js] [dir] .SS "Basic configuration:" .TP \fB\-\-no\-eslintrc\fR Disable use of configuration from .eslintrc.* .TP \fB\-c\fR, \fB\-\-config\fR path::String Use this configuration, overriding .eslintrc.* config options if present .TP \fB\-\-env\fR [String] Specify environments .TP \fB\-\-ext\fR [String] Specify JavaScript file extensions \- default: .js .TP \fB\-\-global\fR [String] Define global variables .TP \fB\-\-parser\fR String Specify the parser to be used .TP \fB\-\-parser\-options\fR Object Specify parser options .TP \fB\-\-resolve\-plugins\-relative\-to\fR path::String A folder where plugins should be resolved from, CWD by default .SS "Specifying rules and plugins:" .TP \fB\-\-rulesdir\fR [path::String] Use additional rules from this directory .TP \fB\-\-plugin\fR [String] Specify plugins .TP \fB\-\-rule\fR Object Specify rules .SS "Fixing problems:" .TP \fB\-\-fix\fR Automatically fix problems .TP \fB\-\-fix\-dry\-run\fR Automatically fix problems without saving the changes to the file system .TP \fB\-\-fix\-type\fR Array Specify the types of fixes to apply (problem, suggestion, layout) .SS "Ignoring files:" .TP \fB\-\-ignore\-path\fR path::String Specify path of ignore file .TP \fB\-\-no\-ignore\fR Disable use of ignore files and patterns .TP \fB\-\-ignore\-pattern\fR [String] Pattern of files to ignore (in addition to those in .eslintignore) .SS "Using stdin:" .TP \fB\-\-stdin\fR Lint code provided on \- default: false .TP \fB\-\-stdin\-filename\fR String Specify filename to process STDIN as .SS "Handling warnings:" .TP \fB\-\-quiet\fR Report errors only \- default: false .TP \fB\-\-max\-warnings\fR Int Number of warnings to trigger nonzero exit code \- default: \fB\-1\fR .SS "Output:" .TP \fB\-o\fR, \fB\-\-output\-file\fR path::String Specify file to write report to .TP \fB\-f\fR, \fB\-\-format\fR String Use a specific output format \- default: stylish .TP \fB\-\-color\fR, \fB\-\-no\-color\fR Force enabling/disabling of color .SS "Inline configuration comments:" .TP \fB\-\-no\-inline\-config\fR Prevent comments from changing config or rules .TP \fB\-\-report\-unused\-disable\-directives\fR Adds reported errors for unused eslint\-disable directives .SS "Caching:" .TP \fB\-\-cache\fR Only check changed files \- default: false .TP \fB\-\-cache\-file\fR path::String Path to the cache file. Deprecated: use \fB\-\-cache\-location\fR \- default: .eslintcache .TP \fB\-\-cache\-location\fR path::String Path to the cache file or directory .SS "Miscellaneous:" .TP \fB\-\-init\fR Run config initialization wizard \- default: false .TP \fB\-\-debug\fR Output debugging information .TP \fB\-h\fR, \fB\-\-help\fR Show help .TP \fB\-v\fR, \fB\-\-version\fR Output the version number .TP \fB\-\-print\-config\fR path::String Print the configuration for the given file