diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index e039a28..0000000 --- a/.eslintrc.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": ["@adobe/eslint-config-aio-lib-config"] -} \ No newline at end of file diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 0000000..2e0bd56 --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,32 @@ +/* +Copyright 2020 Adobe. All rights reserved. +This file is licensed to you under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. You may obtain a copy +of the License at http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software distributed under +the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS +OF ANY KIND, either express or implied. See the License for the specific language +governing permissions and limitations under the License. +*/ + +const aioLibConfig = require('@adobe/eslint-config-aio-lib-config') + +module.exports = [ + ...aioLibConfig, + { + files: ['test/**/*.js'], + languageOptions: { + globals: { + jest: 'readonly', + describe: 'readonly', + test: 'readonly', + expect: 'readonly', + beforeEach: 'readonly', + afterEach: 'readonly', + beforeAll: 'readonly', + afterAll: 'readonly' + } + } + } +] diff --git a/package.json b/package.json index e5677cc..69edae7 100644 --- a/package.json +++ b/package.json @@ -10,23 +10,18 @@ "jsonwebtoken": "^9.0.0" }, "peerDependencies": { - "@adobe/aio-lib-ims": "^7" + "@adobe/aio-lib-ims": "^8.1.2" }, "devDependencies": { - "@adobe/eslint-config-aio-lib-config": "^4.0.0", - "eslint": "^8.57.1", - "eslint-config-standard": "^17.1.0", - "eslint-plugin-import": "^2.31.0", - "eslint-plugin-jest": "^27.9.0", + "@adobe/eslint-config-aio-lib-config": "^5.0.0", + "eslint": "^9.0.0", "eslint-plugin-jsdoc": "^48.11.0", - "eslint-plugin-n": "^15.7.0", - "eslint-plugin-node": "^11.1.0", - "eslint-plugin-promise": "^6.6.0", - "globby": "^14.0.2", - "jest": "^29", - "jest-junit": "^16.0.0", + "globby": "^16.0.0", + "jest": "^30", + "jest-junit": "^17.0.0", + "neostandard": "^0", "stdout-stderr": "^0.1.9", - "typescript": "^5.1.6" + "typescript": "^6.0.0" }, "engines": { "node": ">=20"