From b2aa2cb6c56d42bb90b7abed1e2ad5c6927d9260 Mon Sep 17 00:00:00 2001 From: TimelordUK Date: Wed, 19 Aug 2026 21:57:13 +0100 Subject: [PATCH] fix: drop dead globs from the lint scripts `npm run lint` cannot run on any eslint version because two of its four globs match nothing lintable, and eslint treats that as a hard error rather than a no-op: src/**/*.ts - src holds the C++ sources, zero .ts files lib/**/*.ts - matches only lib/index.d.ts, which eslint.config.mjs already excludes via ignores: ['**/*.d.ts'] eslint 9 aborted on the first, eslint 10 aborts on the second as well with "all of the files matching the glob pattern are ignored". Either way the command never reached the files that do have TypeScript: test/ and samples/. With this fix `npm run lint` runs and reports 75 pre-existing violations (50 auto-fixable). Those are left alone here - this commit only makes the command executable, so the cleanup can be its own change. Co-Authored-By: Claude Opus 5 --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 758e4c77..eea32a64 100644 --- a/package.json +++ b/package.json @@ -100,8 +100,8 @@ "test:cpp": "npm run configure:cpp-tests && npm run build:cpp-tests && cd test/cpp/build && ctest -C Release -V", "test:cpp:debug": "npm run configure:cpp-tests && cmake --build test/cpp/build --config Debug -j 8 && cd test/cpp/build && ctest -C Debug -V", "test:cpp:debug:exe": "test/cpp/build/cpp_tests --gtest_filter=\"*\"", - "lint": "eslint \"src/**/*.ts\" \"lib/**/*.ts\" \"test/**/*.ts\" \"samples/**/*.ts\"", - "lint:fix": "eslint \"src/**/*.ts\" \"lib/**/*.ts\" \"test/**/*.ts\" \"samples/**/*.ts\" --fix", + "lint": "eslint \"test/**/*.ts\" \"samples/**/*.ts\"", + "lint:fix": "eslint \"test/**/*.ts\" \"samples/**/*.ts\" --fix", "test:cpp:clean": "rimraf test/cpp/build && npm run configure:cpp-tests && cmake --build test/cpp/build --config Debug -j 8", "test:cpp:clean:vs": "rimraf test/cpp/build && npm run configure:cpp-tests:vs && cmake --build test/cpp/build --config Debug -j 8", "build:debug": "node-gyp rebuild --debug --verbose -j 4",