From 2c17a5d86b5b4e323d612c83931f3c391ad01d35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9e=20Kooi?= Date: Wed, 16 Oct 2024 19:51:27 +0200 Subject: [PATCH] migrate to neostandard --- eslint.config.js | 10 ++++++++++ package.json | 5 +++-- 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 eslint.config.js diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 0000000..fd13a04 --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,10 @@ +'use strict' + +module.exports = require('neostandard')().concat([ + { + rules: { + 'no-var': 'off', + 'object-shorthand': ['error', 'never'], + }, + }, +]) diff --git a/package.json b/package.json index 1b5e6ee..62f6f2c 100644 --- a/package.json +++ b/package.json @@ -13,11 +13,12 @@ }, "devDependencies": { "dedent": "^0.7.0", + "eslint": "^9.12.0", "hyperstream": "^1.2.2", "nanobench": "^2.1.1", + "neostandard": "^0.11.6", "rimraf": "^3.0.0", "simple-concat": "^1.0.0", - "standard": "^14.0.0", "tape": "^5.0.0" }, "engines": { @@ -38,7 +39,7 @@ "scripts": { "bench": "node bench/hstream.js", "compare": "node bench/hyperstream.js > bench/hyperstream.txt && node bench/hstream.js > bench/hstream.txt && nanobench-compare bench/*.txt; rimraf bench/*.txt", - "lint": "standard", + "lint": "eslint .", "test": "node test/index.js" } }