Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(eslint-plugin): [no-duplicates-in-metadata-arrays] new rule #1779

Conversation

abaran30
Copy link
Contributor

@abaran30 abaran30 commented Apr 18, 2024

This pull request introduces a new rule no-duplicates-in-metadata-arrays. The rule will check all key metadata arrays for NgModule, Component, and Directive.

Fixes #1754

Copy link

nx-cloud bot commented Apr 18, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 1a8cf53. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 6 targets

Sent with 💌 from NxCloud.

@abaran30 abaran30 marked this pull request as ready for review April 21, 2024 16:44
Copy link

codecov bot commented Apr 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.48%. Comparing base (84d2b68) to head (1a8cf53).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1779      +/-   ##
==========================================
+ Coverage   90.40%   90.48%   +0.07%     
==========================================
  Files         176      178       +2     
  Lines        3305     3331      +26     
  Branches      531      532       +1     
==========================================
+ Hits         2988     3014      +26     
  Misses        184      184              
  Partials      133      133              
Flag Coverage Δ
unittest 90.48% <100.00%> (+0.07%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
packages/eslint-plugin/src/index.ts 72.13% <ø> (+0.46%) ⬆️
...ugin/src/rules/no-duplicates-in-metadata-arrays.ts 100.00% <100.00%> (ø)
...ts/rules/no-duplicates-in-metadata-arrays/cases.ts 100.00% <100.00%> (ø)

@JamesHenry JamesHenry enabled auto-merge (squash) May 1, 2024 14:21
@JamesHenry JamesHenry merged commit e09d2ba into angular-eslint:main May 1, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Is there a linting role for detecting duplicated imports?
2 participants