Skip to content

Commit 84a184b

Browse files
committed
update docusaurus
1 parent 1bbe0cd commit 84a184b

File tree

3 files changed

+66
-62
lines changed

3 files changed

+66
-62
lines changed

website/package-lock.json

Lines changed: 56 additions & 56 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

website/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"@eslint/js": "9.22.0",
3737
"@types/eslint__js": "8.42.3",
3838
"@types/react": "19.0.10",
39-
"autoprefixer": "10.4.20",
39+
"autoprefixer": "10.4.21",
4040
"eslint": "9.22.0",
4141
"eslint-config-prettier": "10.1.1",
4242
"eslint-plugin-import": "2.31.0",
@@ -48,7 +48,7 @@
4848
"prettier-plugin-tailwindcss": "0.6.11",
4949
"tailwindcss": "3.4.17",
5050
"typescript": "5.8.2",
51-
"typescript-eslint": "8.26.0"
51+
"typescript-eslint": "8.26.1"
5252
},
5353
"browserslist": {
5454
"production": [

website/src/pages/index.mdx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -627,10 +627,7 @@ export const parseStatus = (params: StatusParams) => {...
627627
628628
### Return Types
629629
630-
<Rule
631-
prefix="Explicitly defining the return type of a function is encouraged, although not required"
632-
href="https://typescript-eslint.io/rules/explicit-function-return-type/"
633-
>{`"@typescript-eslint/explicit-function-return-type": "error"`}</Rule>
630+
Requiring explicit return types improves safety, catches errors early, and helps with long-term maintainability. However, excessive strictness can slow development and add unnecessary redundancy.
634631
635632
Consider the advantages of explicitly defining the return type of a function:
636633
@@ -641,6 +638,13 @@ Consider the advantages of explicitly defining the return type of a function:
641638
- **Encourages Design Discussions**: Similar to Test-Driven Development (TDD), explicitly defining function arguments and return types promotes discussions about a function's functionality and interface ahead of implementation.
642639
- **Optimizes Compilation**: While TypeScript's type inference is powerful, explicitly defining return types can reduce the workload on the TypeScript compiler, improving overall performance.
643640
641+
As context matters, use explicit return types when they add clarity and safety.
642+
643+
<Rule
644+
prefix="Explicitly defining the return type of a function is encouraged, although not required"
645+
href="https://typescript-eslint.io/rules/explicit-function-return-type/"
646+
>{`"@typescript-eslint/explicit-function-return-type": "error"`}</Rule>
647+
644648
## Variables
645649
646650
### Const Assertion

0 commit comments

Comments
 (0)