Skip to content

Commit

Permalink
update eslint dependencies and catch type
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchal committed Aug 27, 2021
1 parent 8c822fe commit 4a8696f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"node": true
},
"extends": [
"airbnb-typescript"
"airbnb-base",
"airbnb-typescript/base"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"project": "./tsconfig.json"
},
"plugins": [
Expand Down
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@
"editor.defaultFormatter": "vscode.json-language-features",
"editor.formatOnSave": true
},
"[jsonc]": {
"editor.defaultFormatter": "vscode.json-language-features",
"editor.formatOnSave": true
},
"cSpell.words": [
"D’Xx",
"O’Donnel",
Expand Down
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const coerce: Coerce = (...coercers: any[]) =>
try {
return coercers.reduce(pipe, value);
} catch (error) {
return failure(error, otherwise);
return failure(error as Error, otherwise);
}
};

Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,15 @@
},
"devDependencies": {
"@types/node": "^16.4.12",
"@typescript-eslint/eslint-plugin": "^4.29.1",
"@typescript-eslint/parser": "^4.29.1",
"@typescript-eslint/eslint-plugin": "^4.29.3",
"@typescript-eslint/parser": "^4.29.3",
"ava": "^3.15.0",
"c8": "^7.8.0",
"codecov": "^3.8.3",
"del-cli": "^4.0.1",
"eslint": "^7.32.0",
"eslint-config-airbnb-typescript": "^12.3.1",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-config-airbnb-typescript": "^14.0.0",
"eslint-plugin-import": "^2.24.0",
"np": "^7.5.0",
"prettier": "^2.3.2",
Expand Down

0 comments on commit 4a8696f

Please sign in to comment.