diff --git a/eslint.config.js b/eslint.config.js index e5a6fd35..b9fb073f 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,8 +1,6 @@ -import js from '@eslint/js'; import nodePlugin from 'eslint-plugin-n'; export default [ - js.configs.recommended, nodePlugin.configs['flat/recommended-module'], { 'rules': { diff --git a/package-lock.json b/package-lock.json index 49309b57..fb0b2920 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,6 +14,9 @@ "devDependencies": { "eslint": "^9.0.0", "eslint-plugin-n": "^17.10.2" + }, + "engines": { + "node": ">=22.0.0" } }, "node_modules/@ampproject/remapping": { diff --git a/package.json b/package.json index 6ff60efe..a85ec59d 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,9 @@ "repository": "git@github.com:openaddresses/batch", "author": "ingalls ", "private": false, + "engines": { + "node": ">=22.0.0" + }, "scripts": { "test": "echo 'no tests'", "lint": "eslint cloudformation/" diff --git a/task/eslint.config.js b/task/eslint.config.js index e5a6fd35..b9fb073f 100644 --- a/task/eslint.config.js +++ b/task/eslint.config.js @@ -1,8 +1,6 @@ -import js from '@eslint/js'; import nodePlugin from 'eslint-plugin-n'; export default [ - js.configs.recommended, nodePlugin.configs['flat/recommended-module'], { 'rules': { diff --git a/task/package-lock.json b/task/package-lock.json index 8c5e7e7b..05565bd0 100644 --- a/task/package-lock.json +++ b/task/package-lock.json @@ -41,6 +41,9 @@ "eslint-plugin-n": "^17.10.2", "sinon": "^19.0.0", "tape": "^5.0.0" + }, + "engines": { + "node": ">=22.0.0" } }, "node_modules/@ampproject/remapping": { diff --git a/task/package.json b/task/package.json index e76c0077..66c5547d 100644 --- a/task/package.json +++ b/task/package.json @@ -5,6 +5,9 @@ "main": "index.js", "license": "MIT", "private": true, + "engines": { + "node": ">=22.0.0" + }, "scripts": { "test": "tape test/**.test.js", "lint": "eslint *.js lib/ test/"