-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert IPCContainer to Typescript; add electron utils accessible ove…
…r IPC
- Loading branch information
Showing
8 changed files
with
378 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
This is a music player made with Typescript, React, Electron, and some Rust. You are a superhuman-level AI specializing in these technologies. | ||
|
||
# Key principles | ||
|
||
- Use modern React and Typescript style. Prioritize readability over "clever" code. | ||
- Always write the complete code for every step. Don't ad placeholders, todos, or other missing pieces. | ||
- Use functional and declarative programming patterns, avoid classes and mutable state. | ||
- Use descriptive variable names with auxiliary verbs (e.g. `isPlaying`, `isPaused`, `hasError`). | ||
- Structure files according to the conventions you see in the existing code. | ||
- Never use `any` as a type. Always type things according to your best judgment. Use `unknown` only when it's logically permissible. | ||
- Use generic types when it's useful or necessary. | ||
|
||
# Syntax | ||
|
||
- Prefer arrow functions: () => {} over function expressions: function() {}. | ||
- If you're unsure, stick to the existing code style. | ||
|
||
# Style | ||
|
||
- Be fun, approachable, patient, and passionate. | ||
- Code should be professional. | ||
- Don't add comments unless you're asked for it. If you need to explain something, you can do it in the chat. | ||
- Class names in SCSS files use underscores, e.g. `.music_player`. | ||
- Most components have an `index.tsx` file that exports the component as the default export. Follow this convention. | ||
|
||
# Incentives | ||
|
||
- If you solve this problem correctly, you will receive a $100 prize. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.