typescript-vuejs-cursorrules-prompt-file
A Cursor rule that tells the agent how to write TypeScript inside Vue.js projects. Useful when you want edits across components to follow the same conventions.
.cursor/rules/typescript-vuejs-cursorrules-prompt-file.mdcWhat typescript-vuejs-cursorrules-prompt-file does
The file is split into sections: naming conventions, TypeScript usage, syntax and formatting, error handling and validation, UI and styling, performance. A closing block on key conventions points the agent at the Vue.js docs where that makes sense.
Scope is set with globs: **/*, so it covers every file in the project. But alwaysApply: false means it does not ride along with each request on its own — you pull it in yourself or let a matching scope trigger it. Worth knowing before you assume Cursor silently follows these conventions in every edit.
Setup is one file: .cursor/rules/typescript-vuejs-cursorrules-prompt-file.mdc at the project root. Nothing else to install or configure.
What it helps with
- settle on one naming style for components and composables
- spell out how props and return values should be typed
- keep template and script formatting consistent across a Vue codebase
- describe error handling and input validation for the agent
- check debatable choices against the Vue.js documentation
Example prompts for the agent
- Build a product card component in TypeScript following
.cursor/rules/typescript-vuejs-cursorrules-prompt-file.mdc - Refactor this component so names and types match the rule
- Review the error handling in this request and fix it per the rule
How to install typescript-vuejs-cursorrules-prompt-file
Manually: put the files in place
.cursor/rules/typescript-vuejs-cursorrules-prompt-file.mdcFrontmatter: description, globs, alwaysApply
Manually: put the files in place
.claude/rules/typescript-vuejs-cursorrules-prompt-file.mdThe paths frontmatter field limits the files: move globs from the source into paths
AGENTS.md
Codex reads AGENTS.md: paste the rule text there
Manually: put the files in place
.github/instructions/typescript-vuejs-cursorrules-prompt-file.instructions.mdThe applyTo field sets which files it applies to: move globs from the source into applyTo
Manually: put the files in place
.devin/rules/typescript-vuejs-cursorrules-prompt-file.mdManually: put the files in place
.clinerules/typescript-vuejs-cursorrules-prompt-file.mdStep by step, with commands for each platform: Cursor rules: .mdc files, four modes and what replaced .cursorrules
Questions about typescript-vuejs-cursorrules-prompt-file
How do I install typescript-vuejs-cursorrules-prompt-file in Cursor?
Create .cursor/rules/typescript-vuejs-cursorrules-prompt-file.mdc at the root of your project and paste the rule contents into it.
What does typescript-vuejs-cursorrules-prompt-file do?
It gives the Cursor agent conventions for TypeScript code in Vue.js projects: naming, typing, formatting, error handling, styling and performance.
Does the rule apply to every file automatically?
Its scope is globs: **/*, yet alwaysApply: false means it is not attached to each edit by default — you have to request it or enable it yourself.
Source text
typescript-vuejs-cursorrules-prompt-file.mdc · CC0-1.0
--- description: "Cursor rules for TypeScript development with Vue.js integration." globs: **/* alwaysApply: false --- Code Style and Structure: Naming Conventions: TypeScript Usage: Syntax and Formatting: Error Handling and Validation: UI and Styling: Performance Optimization: Key Conventions: Follow Vue.js docs for where makes sense
© PatrickJS · CC0-1.0 · PatrickJS/awesome-cursorrules