mirror of
https://github.com/danbulant/jose
synced 2026-05-24 12:35:36 +00:00
style: enable lint with esnext features
This commit is contained in:
parent
1432681891
commit
67beaae815
3 changed files with 10 additions and 2 deletions
3
.c8rc.json
Normal file
3
.c8rc.json
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"reporter": ["lcov", "text-summary"]
|
||||||
|
}
|
||||||
|
|
@ -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) {
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue