@@ -88,76 +88,74 @@ You can view all the CLI options by running `npx eslint -h`.
8888eslint [options] file.js [file.js] [dir]
8989
9090Basic configuration:
91- --no-config-lookup Disable look up for eslint.config.js
92- -c, --config path::String Use this configuration instead of eslint.config.js, eslint.config.mjs, or
93- eslint.config.cjs
94- --inspect-config Open the config inspector with the current configuration
95- --ext [String] Specify additional file extensions to lint
96- --global [String] Define global variables
97- --parser String Specify the parser to be used
98- --parser-options Object Specify parser options
91+ --no-config-lookup Disable look up for eslint.config.js
92+ -c, --config path::String Use this configuration instead of eslint.config.js, eslint.config.mjs, or eslint.config.cjs
93+ --inspect-config Open the config inspector with the current configuration
94+ --ext [String] Specify additional file extensions to lint
95+ --global [String] Define global variables
96+ --parser String Specify the parser to be used
97+ --parser-options Object Specify parser options
9998
10099Specify Rules and Plugins:
101- --plugin [String] Specify plugins
102- --rule Object Specify rules
100+ --plugin [String] Specify plugins
101+ --rule Object Specify rules
103102
104103Fix Problems:
105- --fix Automatically fix problems
106- --fix-dry-run Automatically fix problems without saving the changes to the file system
107- --fix-type Array Specify the types of fixes to apply (directive, problem, suggestion, layout)
104+ --fix Automatically fix problems
105+ --fix-dry-run Automatically fix problems without saving the changes to the file system
106+ --fix-type Array Specify the types of fixes to apply (directive, problem, suggestion, layout)
108107
109108Ignore Files:
110- --no-ignore Disable use of ignore files and patterns
111- --ignore-pattern [String] Patterns of files to ignore
109+ --no-ignore Disable use of ignore files and patterns
110+ --ignore-pattern [String] Patterns of files to ignore
112111
113112Use stdin:
114- --stdin Lint code provided on <STDIN> - default: false
115- --stdin-filename String Specify filename to process STDIN as
113+ --stdin Lint code provided on <STDIN> - default: false
114+ --stdin-filename String Specify filename to process STDIN as
116115
117116Handle Warnings:
118- --quiet Report errors only - default: false
119- --max-warnings Int Number of warnings to trigger nonzero exit code - default: -1
117+ --quiet Report errors only - default: false
118+ --max-warnings Int Number of warnings to trigger nonzero exit code - default: -1
120119
121120Output:
122- -o, --output-file path::String Specify file to write report to
123- -f, --format String Use a specific output format - default: stylish
124- --color, --no-color Force enabling/disabling of color
121+ -o, --output-file path::String Specify file to write report to
122+ -f, --format String Use a specific output format - default: stylish
123+ --color, --no-color Force enabling/disabling of color
125124
126125Inline configuration comments:
127- --no-inline-config Prevent comments from changing config or rules
126+ --no-inline-config Prevent comments from changing config or rules
128127 --report-unused-disable-directives Adds reported errors for unused eslint-disable and eslint-enable directives
129- --report-unused-disable-directives-severity String Chooses severity level for reporting unused eslint-disable and
130- eslint-enable directives - either: off, warn, error, 0, 1, or 2
128+ --report-unused-disable-directives-severity String Chooses severity level for reporting unused eslint-disable and eslint-enable directives - either: off, warn, error, 0, 1, or 2
131129 --report-unused-inline-configs String Adds reported errors for unused eslint inline config comments - either: off, warn, error, 0, 1, or 2
132130
133131Caching:
134- --cache Only check changed files - default: false
135- --cache-file path::String Path to the cache file. Deprecated: use --cache-location - default: .eslintcache
136- --cache-location path::String Path to the cache file or directory
137- --cache-strategy String Strategy to use for detecting changed files in the cache - either: metadata or
138- content - default: metadata
132+ --cache Only check changed files - default: false
133+ --cache-file path::String Path to the cache file. Deprecated: use --cache-location - default: .eslintcache
134+ --cache-location path::String Path to the cache file or directory
135+ --cache-strategy String Strategy to use for detecting changed files in the cache - either: metadata or content - default: metadata
139136
140137Suppressing Violations:
141- --suppress-all Suppress all violations - default: false
142- --suppress-rule [String] Suppress specific rules
138+ --suppress-all Suppress all violations - default: false
139+ --suppress-rule [String] Suppress specific rules
143140 --suppressions-location path::String Specify the location of the suppressions file
144- --prune-suppressions Prune unused suppressions - default: false
145- --pass-on-unpruned-suppressions Ignore unused suppressions - default: false
141+ --prune-suppressions Prune unused suppressions - default: false
142+ --pass-on-unpruned-suppressions Ignore unused suppressions - default: false
146143
147144Miscellaneous:
148- --init Run config initialization wizard - default: false
149- --env-info Output execution environment information - default: false
145+ --init Run config initialization wizard - default: false
146+ --env-info Output execution environment information - default: false
150147 --no-error-on-unmatched-pattern Prevent errors when pattern is unmatched
151- --exit-on-fatal-error Exit with exit code 2 in case of fatal error - default: false
152- --no-warn-ignored Suppress warnings when the file list includes ignored files
153- --pass-on-no-patterns Exit with exit code 0 in case no file patterns are passed
154- --debug Output debugging information
155- -h, --help Show help
156- -v, --version Output the version number
157- --print-config path::String Print the configuration for the given file
158- --stats Add statistics to the lint report - default: false
159- --flag [String] Enable a feature flag
160- --mcp Start the ESLint MCP server
148+ --exit-on-fatal-error Exit with exit code 2 in case of fatal error - default: false
149+ --no-warn-ignored Suppress warnings when the file list includes ignored files
150+ --pass-on-no-patterns Exit with exit code 0 in case no file patterns are passed
151+ --debug Output debugging information
152+ -h, --help Show help
153+ -v, --version Output the version number
154+ --print-config path::String Print the configuration for the given file
155+ --stats Add statistics to the lint report - default: false
156+ --flag [String] Enable a feature flag
157+ --mcp Start the ESLint MCP server
158+ --concurrency Int|String Number of linting threads, auto to choose automatically, off for no multithreading - default: off
161159```
162160
163161### Basic Configuration
@@ -1100,6 +1098,23 @@ This option starts the ESLint MCP server for use with AI agents.
11001098 args: [ "--mcp"]
11011099}) }}
11021100
1101+ #### ` --concurrency `
1102+
1103+ This option controls the number of worker threads used to lint files.
1104+
1105+ - ** Argument Type** : Int|String. A positive integer, ` auto ` or ` off ` .
1106+ - ** Multiple Arguments** : No
1107+ - ** Default Value** : ` off `
1108+
1109+ The value ` off ` causes all files to be linted in the main thread. The value ` auto ` attempts to determine the best setting automatically.
1110+
1111+ ##### ` --concurrency ` example
1112+
1113+ {{ npx_tabs ({
1114+ package: "eslint",
1115+ args: [ "--concurrency", "auto"]
1116+ }) }}
1117+
11031118## Exit Codes
11041119
11051120When linting files, ESLint exits with one of the following exit codes:
0 commit comments