From 67beaae8157459a47d3c242537ea7e6480c2b4be Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Mon, 27 May 2019 17:22:29 +0200 Subject: [PATCH] style: enable lint with esnext features --- .c8rc.json | 3 +++ lib/jwks/keystore.js | 2 +- package.json | 7 ++++++- 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 .c8rc.json diff --git a/.c8rc.json b/.c8rc.json new file mode 100644 index 00000000..7cb7d759 --- /dev/null +++ b/.c8rc.json @@ -0,0 +1,3 @@ +{ + "reporter": ["lcov", "text-summary"] +} diff --git a/lib/jwks/keystore.js b/lib/jwks/keystore.js index 9adacc66..8abb8751 100644 --- a/lib/jwks/keystore.js +++ b/lib/jwks/keystore.js @@ -47,7 +47,7 @@ class KeyStore { throw new TypeError('all keys must be an instances of a key instantiated by JWK.importKey') } - this.#keys = new Set(keys); + this.#keys = new Set(keys) } static fromJWKS (jwks) { diff --git a/package.json b/package.json index 8feda899..d36cb786 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "flattened", "general", "jose", + "json web token", "jsonwebtoken", "jwa", "jwe", @@ -32,7 +33,7 @@ "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { - "coverage": "c8 -r lcov -r text-summary ava", + "coverage": "c8 ava", "lint": "standard", "lint-fix": "standard --fix", "test": "ava", @@ -55,6 +56,7 @@ "@commitlint/cli": "^7.5.2", "@commitlint/config-conventional": "^7.5.0", "ava": "^1.2.1", + "babel-eslint": "^10.0.1", "c8": "^5.0.0", "husky": "^2.1.0", "standard": "^12.0.1" @@ -68,5 +70,8 @@ "files": [ "test/**/*.test.js" ] + }, + "standard": { + "parser": "babel-eslint" } }