|
@@ -19,14 +19,14 @@
|
|
|
|
|
|
|
|
## IMPORTANT
|
|
## IMPORTANT
|
|
|
|
|
|
|
|
-- Try to keep things in one function unless composable or reusablte
|
|
|
|
|
|
|
+- Try to keep things in one function unless composable or reusable
|
|
|
- DO NOT do unnecessary destructuring of variables
|
|
- DO NOT do unnecessary destructuring of variables
|
|
|
-- DO NOT use else statements unless necessary
|
|
|
|
|
-- DO NOT use try catch if it can be avoided
|
|
|
|
|
-- AVOID try catch where possible
|
|
|
|
|
-- AVOID else statements
|
|
|
|
|
|
|
+- DO NOT use `else` statements unless necessary
|
|
|
|
|
+- DO NOT use `try`/`catch` if it can be avoided
|
|
|
|
|
+- AVOID `try`/`catch` where possible
|
|
|
|
|
+- AVOID `else` statements
|
|
|
- AVOID using `any` type
|
|
- AVOID using `any` type
|
|
|
-- AVOID let statements
|
|
|
|
|
|
|
+- AVOID `let` statements
|
|
|
- PREFER single word variable names where possible
|
|
- PREFER single word variable names where possible
|
|
|
- Use as many bun apis as possible like Bun.file()
|
|
- Use as many bun apis as possible like Bun.file()
|
|
|
|
|
|