Modernise C++ linter using new @cpplint/cli tooling

This commit is contained in:
Lovell Fuller
2025-09-22 14:59:52 +01:00
parent adb6275ae9
commit 54722dd582
14 changed files with 55 additions and 36 deletions

View File

@@ -96,7 +96,7 @@
"clean": "rm -rf src/build/ .nyc_output/ coverage/ test/fixtures/output.*",
"test": "npm run lint && npm run test-unit",
"lint": "npm run lint-cpp && npm run lint-js && npm run lint-types",
"lint-cpp": "cpplint",
"lint-cpp": "cpplint --quiet src/*.h src/*.cc",
"lint-js": "biome lint",
"lint-types": "tsd --files ./test/types/sharp.test-d.ts",
"test-leak": "./test/leak/leak.sh",
@@ -168,6 +168,7 @@
},
"devDependencies": {
"@biomejs/biome": "^2.2.4",
"@cpplint/cli": "^0.1.0",
"@emnapi/runtime": "^1.5.0",
"@img/sharp-libvips-dev": "1.2.3",
"@img/sharp-libvips-dev-wasm32": "1.2.3",
@@ -175,7 +176,6 @@
"@img/sharp-libvips-win32-ia32": "1.2.3",
"@img/sharp-libvips-win32-x64": "1.2.3",
"@types/node": "*",
"cc": "^3.0.1",
"emnapi": "^1.5.0",
"exif-reader": "^2.0.2",
"extract-zip": "^2.0.1",