Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions tools/make/lib/lint/javascript/eslint.mk
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ eslint_flags := \
# Define user-supplied command-line options:
ESLINT_FLAGS ?=

# Ensure the `ESLINT_FLAGS` variable is not exported to the environment of invoked commands:
#
# - ESLint 9.39+ reads the `ESLINT_FLAGS` environment variable to enable feature flags (e.g., `unstable_native_nodejs_ts_config`) and throws `Unknown flag` for anything unrecognized.
# - GNU `make` exports command-line variables as environment variables to recipes, so `make ESLINT_FLAGS=--quiet` would otherwise cause `--quiet` to be interpreted as a feature flag instead of a command-line option.
unexport ESLINT_FLAGS

ifeq ($(AUTOFIX),true)
eslint_flags += --fix
endif
Expand Down
Loading