@@ -357,48 +357,46 @@ The output should look like this:
357357` ` ` bash filename=" Terminal"
358358Usage: next lint [directory] [options]
359359
360- Runs ESLint for all files in the ` /src` , ` /app` , ` /pages` , ` /components` , and ` /lib`
361- directories. It also provides a guided setup to install any required dependencies if ESLint
362- is not already configured in your application.
360+ Runs ESLint for all files in the ` /src` , ` /app` , ` /pages` , ` /components` , and ` /lib` directories. It also
361+ provides a guided setup to install any required dependencies if ESLint is not already configured in your
362+ application.
363363
364364Arguments:
365- [directory] A base directory on which to lint the application.
366- If no directory is provided, the current
367- directory will be used.
365+ [directory] A base directory on which to lint the application.
366+ If no directory is provided, the current directory
367+ will be used.
368368
369369Options:
370- -d, --dir, < dirs...> Include directory, or directories, to run ESLint.
371- --file, < files...> Include file, or files, to run ESLint.
372- --ext, [exts...] Specify JavaScript file extensions. (default:
373- [" .js" , " .mjs" , " .cjs" , " .jsx" , " .ts" , " .mts" , " .cts" , " .ts
374- x" ])
375- -c, --config, < config> Uses this configuration file, overriding all other
376- configuration options.
377- --resolve-plugins-relative-to, < rprt> Specify a directory where plugins should be
378- resolved from.
379- --strict Creates a ` .eslintrc.json` file using the Next.js
380- strict configuration.
381- --rulesdir, < rulesdir...> Uses additional rules from this directory(s).
382- --fix Automatically fix linting issues.
383- --fix-type < fixType> Specify the types of fixes to apply (e.g., problem,
384- suggestion, layout).
385- --ignore-path < path> Specify a file to ignore.
386- --no-ignore < path> Disables the ` --ignore-path` option.
387- --quiet Reports errors only.
388- --max-warnings [maxWarnings] Specify the number of warnings before triggering a
389- non-zero exit code. (default: -1)
390- -o, --output-file, < outputFile> Specify a file to write report to.
391- -f, --format, < format> Uses a specifc output format.
392- --no-inline-config Prevents comments from changing config or rules.
393- --report-unused-disable-directives Adds reprted errors for unused eslint-disable
394- directives.
395- --no-cache Disables caching.
396- --cache-location, < cacheLocation> Specify a location for cache.
397- --cache-strategy, [cacheStrategy] Specify a strategy to use for detecting changed
398- files in the cache. (default: " metadata" )
399- --error-on-unmatched-pattern Reports errors when any file patterns are
400- unmatched.
401- -h, --help Displays this message.
370+ -d, --dir, < dirs...> Include directory, or directories, to run ESLint.
371+ --file, < files...> Include file, or files, to run ESLint.
372+ --ext, [exts...] Specify JavaScript file extensions. (default:
373+ [" .js" , " .mjs" , " .cjs" , " .jsx" , " .ts" , " .mts" , " .cts" , " .tsx" ])
374+ -c, --config, < config> Uses this configuration file, overriding all other
375+ configuration options.
376+ --resolve-plugins-relative-to, < rprt> Specify a directory where plugins should be resolved
377+ from.
378+ --strict Creates a ` .eslintrc.json` file using the Next.js
379+ strict configuration.
380+ --rulesdir, < rulesdir...> Uses additional rules from this directory(s).
381+ --fix Automatically fix linting issues.
382+ --fix-type < fixType> Specify the types of fixes to apply (e.g., problem,
383+ suggestion, layout).
384+ --ignore-path < path> Specify a file to ignore.
385+ --no-ignore < path> Disables the ` --ignore-path` option.
386+ --quiet Reports errors only.
387+ --max-warnings [maxWarnings] Specify the number of warnings before triggering a
388+ non-zero exit code. (default: -1)
389+ -o, --output-file, < outputFile> Specify a file to write report to.
390+ -f, --format, < format> Uses a specifc output format.
391+ --no-inline-config Prevents comments from changing config or rules.
392+ --report-unused-disable-directives-severity < level> Specify severity level for unused eslint-disable
393+ directives. (choices: " error" , " off" , " warn" )
394+ --no-cache Disables caching.
395+ --cache-location, < cacheLocation> Specify a location for cache.
396+ --cache-strategy, [cacheStrategy] Specify a strategy to use for detecting changed files
397+ in the cache. (default: " metadata" )
398+ --error-on-unmatched-pattern Reports errors when any file patterns are unmatched.
399+ -h, --help Displays this message.
402400` ` `
403401
404402If you have other directories that you would like to lint, you can specify them using the ` --dir` flag:
0 commit comments