diff --git a/.eslintrc b/.eslintrc deleted file mode 100644 index a706ff1..0000000 --- a/.eslintrc +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": ["eslint:recommended"], - "env": { - "node": true, - "es6": true - }, - "parserOptions": { - "ecmaVersion": 2020 - }, - "rules": {} -} diff --git a/eslint.config.cjs b/eslint.config.cjs new file mode 100644 index 0000000..b36dec3 --- /dev/null +++ b/eslint.config.cjs @@ -0,0 +1,23 @@ +const globals = require("globals"); +const js = require("@eslint/js"); + +const { + FlatCompat, +} = require("@eslint/eslintrc"); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, + allConfig: js.configs.all +}); + +module.exports = [...compat.extends("eslint:recommended"), { + languageOptions: { + globals: { + ...globals.node, + }, + ecmaVersion: 2020, + sourceType: "commonjs", + }, + rules: {}, +}]; \ No newline at end of file diff --git a/package.json b/package.json index d2a944c..4b4e52b 100644 --- a/package.json +++ b/package.json @@ -32,20 +32,20 @@ }, "homepage": "https://github.com/nearform/get-jwks#readme", "dependencies": { - "jwk-to-pem": "^2.0.4", - "lru-cache": "^11.0.0" + "jwk-to-pem": "^2.0.7", + "lru-cache": "^11.0.2" }, "devDependencies": { - "@fastify/jwt": "^8.0.0", - "@types/node": "^22.0.0", - "eslint": "^8.6.0", - "fast-jwt": "^4.0.0", - "fastify": "^4.0.3", - "jsonwebtoken": "^9.0.0", - "nock": "^v14.0.0-beta.16", - "prettier": "^3.0.0", + "@fastify/jwt": "^9.0.1", + "@types/node": "^22.10.1", + "eslint": "^9.16.0", + "fast-jwt": "^5.0.0", + "fastify": "^5.1.0", + "jsonwebtoken": "^9.0.2", + "nock": "^v14.0.0-beta.18", + "prettier": "^3.4.1", "sinon": "^19.0.2", - "tsd": "^0.31.0", - "typescript": "^5.0.2" + "tsd": "^0.31.2", + "typescript": "^5.7.2" } }