Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: support --cache-strategy ESLint argument (fixes #29926) #29928

Merged
merged 15 commits into from Nov 8, 2021
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/next/cli/next-lint.ts
Expand Up @@ -67,6 +67,7 @@ const nextLint: cliCommand = async (argv) => {
'--cache': Boolean, // Although cache is enabled by default, this dummy flag still exists to not cause any breaking changes
'--no-cache': Boolean,
'--cache-location': String,
'--cache-strategy': String,
'--error-on-unmatched-pattern': Boolean,
'--format': String,

Expand Down Expand Up @@ -134,6 +135,7 @@ const nextLint: cliCommand = async (argv) => {
Caching:
--no-cache Disable caching
--cache-location path::String Path to the cache file or directory - default: .eslintcache
--cache-strategy String Strategy to use for detecting changed files in the cache - either: metadata or content - default: metadata
OKinane marked this conversation as resolved.
Show resolved Hide resolved

Miscellaneous:
--error-on-unmatched-pattern Show errors when any file patterns are unmatched - default: false
Expand Down