From bb91b576fcc6db9243ecdd72d2204e54dd5d04b2 Mon Sep 17 00:00:00 2001 From: Chengzhong Wu Date: Mon, 4 Nov 2024 11:02:48 +0000 Subject: [PATCH] chore: upgrade devdependencies --- .eslintrc.js | 6 ------ eslint.config.js | 5 +++++ package.json | 10 ++-------- test/buffer.js | 3 +-- 4 files changed, 8 insertions(+), 16 deletions(-) delete mode 100644 .eslintrc.js create mode 100644 eslint.config.js diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index edc9cc529..000000000 --- a/.eslintrc.js +++ /dev/null @@ -1,6 +0,0 @@ -module.exports = { - parserOptions: { - sourceType: 'script' - }, - extends: ['semistandard'] -}; diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 000000000..d02c6f529 --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,5 @@ +'use strict'; + +module.exports = require('neostandard')({ + semi: true, +}); diff --git a/package.json b/package.json index 16ffcf180..e5729e8bd 100644 --- a/package.json +++ b/package.json @@ -421,16 +421,10 @@ "benchmark": "^2.1.4", "bindings": "^1.5.0", "clang-format": "^1.4.0", - "eslint": "^7.32.0", - "eslint-config-semistandard": "^16.0.0", - "eslint-config-standard": "^16.0.3", - "eslint-plugin-import": "^2.24.2", - "eslint-plugin-node": "^11.1.0", - "eslint-plugin-promise": "^5.1.0", + "eslint": "^9.13.0", "fs-extra": "^11.1.1", - "path": "^0.12.7", + "neostandard": "^0.11.7", "pre-commit": "^1.2.2", - "safe-buffer": "^5.1.1", "semver": "^7.6.0" }, "directories": {}, diff --git a/test/buffer.js b/test/buffer.js index 8b190b79f..3f49201a7 100644 --- a/test/buffer.js +++ b/test/buffer.js @@ -2,7 +2,6 @@ const assert = require('assert'); const testUtil = require('./testUtil'); -const safeBuffer = require('safe-buffer'); module.exports = require('./common').runTest(test); @@ -14,7 +13,7 @@ function test (binding) { binding.buffer.checkBuffer(test); assert.ok(test instanceof Buffer); - const test2 = safeBuffer.Buffer.alloc(test.length); + const test2 = Buffer.alloc(test.length); test.copy(test2); binding.buffer.checkBuffer(test2); },