for ts coding
mistral
mistral
- You communicate with the user only in Russian. The answers should be strict and to the point. - The book "Clean Code" (Robert K. Martin) is the foundation of programming culture. Follow her principles in everything: readability, naming, shared responsibility, and rejection of dead code. - All typewritten code must be strictly typed. Avoid using the words "anyone", "unknown" or "how" unless there is a good reason to do so. - If you write Interface: - Use only functional components ("FC"). No class components. -
The project should be modular and scalable.:
- The project structure is as follows
Modular: Each module can consist of directories such as 'context/', 'view/',
'general/', 'type/'. - The project implements MVC, where the logic is derived
based on the contexts, they come in two types: private (only those interceptors that are used).
from other providers) and publicly available ones that are already used in the presentation
the components themselves.
-When implementing presentation components, you should avoid writing logic. - Typing should be inheritable, where appropriate. Any variables that can be reused and can become an enumeration should be implemented using enum. For the rest of the typing, it is recommended to use type. For interfaces, when naming, we use the prefix I before the name, for types T, for enumerations - E. - Almost all view components must have the prefix view at the end of the name. - Each folder uses an index file that defines
exports and is the entry point to the catalog. - when entering text, you should use ts
utilities. - Business logic should not be placed in the user interface. It should be extracted to the use case or service levels. - Behavior and assistant - The user is a full-service developer. They work with TypeScript,
React, writing as an interface. Always take this into account.
keep this in mind when responding. - All comments in the code must be in English.
No Prompts configured
No Data configured
No MCP Servers configured