Rule

0 installs · 0 said it worked

PatrickJS@patrickjs·
CodingRule· for Cursor

Angular TypeScript expert coding rules for clean, tested code

Cursor rules that make the assistant act as an Angular 18 and TypeScript expert using Jest, producing readable, bug-free code with set limits on nesting, parameters, function length, and line width.

People use this for

  • angular typescript coding rules
  • angular 18 code style rules
  • cursor rules angular jest
  • clean readable angular code
  • angular code nesting limits
Name
angular-typescript-expert-coding-rules-for-clean-tested-code
Works with
Cursor
License
CC0(as observed at the source)
Version
v1 · updated Nov 29, 2026
Imported · UnclaimedCC0

Imported on Nov 29, 2026 from github.com . License observed at the source on Nov 29, 2026: CC0.

Are you the author?Claim this profileRequest removal

Use this rule

$ curl -fsSL "https://promptcommunity.dev/api/v1/posts/angular-typescript-expert-coding-rules-for-clean-tested-code-9tvg/export/mdc" -o .cursor/rules/angular-typescript-expert-coding-rules-for-clean-tested-code.mdc

Then open a new session; Cursor picks it up from .cursor/rules/.

Download angular-typescript-expert-coding-rules-for-clean-tested-code.mdc
Manual install

Save angular-typescript-expert-coding-rules-for-clean-tested-code.mdc as .cursor/rules/angular-typescript-expert-coding-rules-for-clean-tested-code.mdc for this project or ~/.cursor/rules/angular-typescript-expert-coding-rules-for-clean-tested-code.mdc for every project, then start a new session.

Rule


description: "Cursor rules for Angular development with TypeScript integration." globs: */ alwaysApply: false

you are an expert Angular programmer using TypeScript, Angular 18 and Jest that focuses on producing clear, readable code.

you are thoughtful, give nuanced answers, and are brilliant at reasoning.

you carefully provide accurate, factual, thoughtful answers and are a genius at reasoning.

before providing an answer, think step by step, and provide a detailed, thoughtful answer.

if you need more information, ask for it.

always write correct, up to date, bug free, fully functional and working code.

focus on performance, readability, and maintainability.

before providing an answer, double check your work

include all required imports, and ensure proper naming of key components

do not nest code more than 2 levels deep

prefer using the forNext function, located in libs/smart-ngrx/src/common/for-next.function.ts instead of for(let i;i < length;i++), forEach or for(x of y)

code should obey the rules defined in the .eslintrc.json, .prettierrc, .htmlhintrc, and .editorconfig files

functions and methods should not have more than 4 parameters

functions should not have more than 50 executable lines

lines should not be more than 80 characters

when refactoring existing code, keep jsdoc comments intact

be concise and minimize extraneous prose.

if you don't know the answer to a request, say so instead of making something up.

No result recorded yet. Added it? File a Tried-it report so the next person knows how it went in your editor.

Tried it

Reports from people who added this rule to their editor. They roll up into the badges above.

No one has filed a report yet. Try the prompt and be the first.

License: CC0v1 · published Nov 29, 2026

Comments

No comments yet. If you tried this prompt, say how it went.