Skip to content

feat: add new rule no-array-fill-with-reference-type without fix solution - #2661

Closed
legend80s wants to merge 71 commits into
sindresorhus:mainfrom
legend80s:main
Closed

feat: add new rule no-array-fill-with-reference-type without fix solution#2661
legend80s wants to merge 71 commits into
sindresorhus:mainfrom
legend80s:main

Conversation

@legend80s

Copy link
Copy Markdown

liuchuanzong and others added 30 commits May 29, 2025 09:04
…eadme.md to main generated by npm run fix:eslint-docs using Node.js v22.16.0
…eadme.md to main generated by npm run fix:eslint-docs using Node.js v22.16.0
@legend80s

Copy link
Copy Markdown
Author

@fisker Could you check the CI failures? They don’t appear to be related to this PR.

@fisker

fisker commented Oct 16, 2025

Copy link
Copy Markdown
Collaborator

#2782

@fisker fisker left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm having difficulty understanding the logic, will take another look.

Comment thread rules/no-array-fill-with-reference-type.js
Comment thread rules/no-array-fill-with-reference-type.js Outdated
Comment thread rules/no-array-fill-with-reference-type.js Outdated
Comment thread rules/no-array-fill-with-reference-type.js Outdated
Comment thread rules/no-array-fill-with-reference-type.js Outdated
Comment thread test/string-content.js Outdated
Comment thread rules/no-array-fill-with-reference-type.js Outdated
Comment thread rules/no-array-fill-with-reference-type.js Outdated
@fisker

fisker commented Oct 16, 2025

Copy link
Copy Markdown
Collaborator

@legend80s

Copy link
Copy Markdown
Author

Please also take a look at https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/new-rule.md

I ran npm run fix:eslint-docs before, but the generated README.md tends to cause merge conflicts, so I suggest the merger run it after this PR is merged.

@legend80s
legend80s requested a review from fisker October 21, 2025 01:43
@legend80s

Copy link
Copy Markdown
Author

@fisker Could you check the lint warnings for me. I have merge main but the warnings still exists:
https://github.com/sindresorhus/eslint-plugin-unicorn/actions/runs/18706642494/job/53345855996?pr=2661

Comment thread rules/no-array-fill-with-reference-type.js Outdated
Comment thread docs/rules/no-array-fill-with-reference-type.md Outdated
Comment thread rules/no-array-fill-with-reference-type.js Outdated
Comment thread rules/no-array-fill-with-reference-type.js Outdated
Comment thread rules/no-array-fill-with-reference-type.js Outdated
Comment thread rules/no-array-fill-with-reference-type.js
@sindresorhus

Copy link
Copy Markdown
Owner

Some tests are failing.

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.

3 participants