mgechev / mgechev/codelyzer

[feature request]: Add a new rule validate decorators

Open
#966 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
2.5k
Forks
232
PR merge metrics
No merged PRs in 30d

Description

I found this could be useful if we want to enforce the code to use always specific rule in decorators e.g always use `OnPush` change detection

References:
https://github.com/angular/components/pull/7119/files#diff-ace19bd0c04529e685320269e3c05de9
https://github.com/angular/components/pull/6800/files#diff-4f12977d13592c5f817099357ce8af08

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the two referenced Angular component pull requests and the repository's existing rule structure. Define the decorator patterns to validate, including the OnPush example, and consider the work complete when a new rule consistently enforces the specified decorator usage.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.