Skip to content

Commit dfed81a

Browse files
committed
Add stronger typing support, fix bad tests
- Correctly provide return value type when using the 'object' return notation - Fix code in tests that wasn't running - Add `prettier`
1 parent e793659 commit dfed81a

File tree

6 files changed

+13233
-68
lines changed

6 files changed

+13233
-68
lines changed

.eslintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"parser": "@typescript-eslint/parser",
3-
"plugins": ["@typescript-eslint", "react-hooks"],
3+
"plugins": ["@typescript-eslint", "react-hooks", "prettier"],
44
"rules": {
5+
"prettier/prettier": "error",
56
"react-hooks/rules-of-hooks": "error",
67
"react-hooks/exhaustive-deps": [
78
"warn",

.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"printWidth": 100,
3+
"trailingComma": "es5",
4+
"tabWidth": 2,
5+
"semi": true,
6+
"singleQuote": true
7+
}

0 commit comments

Comments
 (0)