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')
}
this.#keys = new Set(keys);
this.#keys = new Set(keys)
}
static fromJWKS (jwks) {

View file

@ -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"
}
}