מרקטפלייס
חבילת חוקיםחינם

Code style rules

מאת Ingot מפרסם מאומת

The seven rules Habits writes for you, as one always-on rules file.

ההתקנה פותחת את Ingot ומוסיפה את הפריט.

צריך את האפליקציה? הורדת Ingot

אודות

The same rule sentences Habits proposes when you keep rejecting a style, in one rules file you can add up front. Save it in .ingot/rules and Ingot includes it in every agent chat (alwaysApply). Commit it and your whole team gets the same rules.

עיקרי הדברים

  • A plain .mdc file in .ingot/rules, easy to edit
  • alwaysApply: included in every agent chat
  • Commit it to share it with your team

מה בפנים

.ingot/rules/code-style.mdc
---
description: Code style rules from Ingot Habits
alwaysApply: true
---
- Do not add console.log or console.debug calls.
- Do not use the TypeScript any type; use precise types.
- Use named exports, not default exports.
- Use const or let, never var.
- Do not use inline styles; use CSS classes and design tokens.
- Do not leave TODO or FIXME comments; finish the work instead.
- Prefer arrow functions (const name = () => …) over function declarations.

התקנה ידנית

  1. In your project, create .ingot/rules/code-style.mdc.
  2. Paste the file below and save.
  3. Ingot picks it up in the next agent chat. Commit it to share it.