From c2edc219fc574b6696d743d49ad56e3c182c4b46 Mon Sep 17 00:00:00 2001 From: Philipp Burckhardt Date: Thu, 29 Oct 2026 02:03:52 -0500 Subject: [PATCH] build: restore test-file ESLint rule overrides The flat config migration dropped several rule overrides which the legacy `etc/eslint/.eslintrc.tests.js` applied to test files. Notably, without disabling `stdlib/jsdoc-doctest`, ESLint executes test files in a VM context, thus running the tests themselves and crashing on native tests when an addon is not available. Co-Authored-By: Claude Opus 5.5 --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: skipped - task: lint_markdown_pkg_readmes status: na - task: lint_markdown_docs status: na - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - 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: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- eslint.config.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/eslint.config.js b/eslint.config.js index 665a1ab0ebfe..18feb7a04d22 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -154,7 +154,12 @@ var config = [ 'files': [ '**/test/**/*.js' ], 'rules': { 'no-empty-function': 'off', + 'no-new-wrappers': 'warn', 'jsdoc/require-jsdoc': 'off', + 'stdlib/jsdoc-private-annotation': 'off', + 'stdlib/jsdoc-doctest': 'off', + 'stdlib/no-single-property-require': 'off', + 'stdlib/no-unnecessary-nested-functions': 'off', 'no-undefined': 'off', 'max-lines': [ 'warn', { 'max': 1000,