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

Add prefer-array-includes rule #1059

Closed
wants to merge 87 commits into from
Closed

Add prefer-array-includes rule #1059

wants to merge 87 commits into from

Conversation

Fabrice-TIERCELIN
Copy link
Contributor

Add prefer-indexof rule

I didn't write the snapshot test as I don't know how to get the file .js.snap.

Fixes #1058

fisker and others added 30 commits January 24, 2021 07:08
Co-authored-by: fisker Cheung <lionkay@gmail.com>
* Revert "`error-message`: Check `AggregateError` too (#921)"

This reverts commit 08ddc78.

* Update error-message.js
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
* Fix link in `new-for-builtins` rule documentation

* Fix typo
Co-authored-by: fisker <lionkay@gmail.com>
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
fisker and others added 25 commits January 24, 2021 07:08
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
Co-authored-by: Elliot <elliot@maisl.fr>
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
Co-authored-by: fisker <lionkay@gmail.com>
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
Add `prefer-array-index-of` rule
@fisker
Copy link
Collaborator

fisker commented Jan 24, 2021

Closing this, see #1058 (comment), please pull main branch from upstream, and start from there, too many unrelated commits in this PR.

Update/create snapshot, use npx ava -u or npx ava test/xxxx.js -u.

@fisker fisker closed this Jan 24, 2021
@fisker fisker changed the title Add prefer-array-index-of rule Add prefer-array-includes rule Jan 24, 2021
@Fabrice-TIERCELIN Fabrice-TIERCELIN deleted the prefer-array-includes branch January 24, 2021 16:26
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.

Rule proposal: prefer-array-includes