From 8e6399f3d3de81e8d376ccdfab9bf5f0df1a638f Mon Sep 17 00:00:00 2001 From: Philipp Burckhardt Date: Tue, 28 Apr 2026 00:27:17 -0500 Subject: [PATCH] build: complete `eslint-plugin-n` rename in override configs Rename two stale `node/no-unpublished-require` keys to `n/no-unpublished-require` left over from the migration in 0dc62ae39a4. The defining file (`etc/eslint/rules/nodejs.js`) already registers the rule under the new key, so the previous override entries no longer match anything and the rule fires on every README that requires a devDependency (e.g. `eslint`). --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: skipped - task: lint_editorconfig status: skipped - task: lint_markdown status: skipped - task: lint_package_json status: skipped - task: lint_repl_help status: skipped - task: lint_javascript_src status: skipped - task: lint_javascript_cli status: skipped - task: lint_javascript_examples status: skipped - task: lint_javascript_tests status: skipped - task: lint_javascript_benchmarks status: skipped - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: skipped - task: lint_typescript_tests status: skipped - task: lint_license_headers status: skipped --- --- etc/eslint/.eslintrc.markdown.js | 2 +- etc/eslint/overrides/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/eslint/.eslintrc.markdown.js b/etc/eslint/.eslintrc.markdown.js index 80a13fd8df76..34fe761ff1fb 100644 --- a/etc/eslint/.eslintrc.markdown.js +++ b/etc/eslint/.eslintrc.markdown.js @@ -149,7 +149,7 @@ eslint.rules[ 'no-unused-vars' ] = 'off'; * * @private */ -eslint.rules[ 'node/no-unpublished-require' ] = 'off'; +eslint.rules[ 'n/no-unpublished-require' ] = 'off'; // EXPORTS // diff --git a/etc/eslint/overrides/index.js b/etc/eslint/overrides/index.js index 8c08b331c34b..f0eb50d0aee0 100644 --- a/etc/eslint/overrides/index.js +++ b/etc/eslint/overrides/index.js @@ -162,7 +162,7 @@ var overrides = [ 'stdlib/return-annotations-values': 'off', 'strict': 'off', 'vars-on-top': 'off', - 'node/no-unpublished-require': 'off' + 'n/no-unpublished-require': 'off' } }, {