style: enable lint with esnext features

This commit is contained in:
Filip Skokan 2019-05-27 17:22:29 +02:00
parent 1432681891
commit 67beaae815
3 changed files with 10 additions and 2 deletions

3
.c8rc.json Normal file
View file

@ -0,0 +1,3 @@
{
"reporter": ["lcov", "text-summary"]
}

View file

@ -47,7 +47,7 @@ class KeyStore {
throw new TypeError('all keys must be an instances of a key instantiated by JWK.importKey') 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) { static fromJWKS (jwks) {

View file

@ -11,6 +11,7 @@
"flattened", "flattened",
"general", "general",
"jose", "jose",
"json web token",
"jsonwebtoken", "jsonwebtoken",
"jwa", "jwa",
"jwe", "jwe",
@ -32,7 +33,7 @@
"main": "lib/index.js", "main": "lib/index.js",
"types": "lib/index.d.ts", "types": "lib/index.d.ts",
"scripts": { "scripts": {
"coverage": "c8 -r lcov -r text-summary ava", "coverage": "c8 ava",
"lint": "standard", "lint": "standard",
"lint-fix": "standard --fix", "lint-fix": "standard --fix",
"test": "ava", "test": "ava",
@ -55,6 +56,7 @@
"@commitlint/cli": "^7.5.2", "@commitlint/cli": "^7.5.2",
"@commitlint/config-conventional": "^7.5.0", "@commitlint/config-conventional": "^7.5.0",
"ava": "^1.2.1", "ava": "^1.2.1",
"babel-eslint": "^10.0.1",
"c8": "^5.0.0", "c8": "^5.0.0",
"husky": "^2.1.0", "husky": "^2.1.0",
"standard": "^12.0.1" "standard": "^12.0.1"
@ -68,5 +70,8 @@
"files": [ "files": [
"test/**/*.test.js" "test/**/*.test.js"
] ]
},
"standard": {
"parser": "babel-eslint"
} }
} }