-
-
Notifications
You must be signed in to change notification settings - Fork 746
docs(linter): Handle rules that use tuple config options with DefaultRuleConfig #16555
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
Open
connorshea
wants to merge
31
commits into
main
Choose a base branch
from
handle-tuple-rules-better
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 26 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
484c41e
docs(linter): Update DefaultRuleConfig deserialization for more compl…
connorshea f79c1aa
refactor(linter): Refactor the DefaultRuleConfig implementation to si…
connorshea 2054095
Add more tests for the DefaultRuleConfig behavior.
connorshea 8c59173
Add more tests, simply code a bit hopefully.
connorshea 986d18c
Updates for tests.
connorshea 766f7c7
I'm sure this can be done better, but I've done my best trying to opt…
connorshea 0e5ecc9
refactor(linter): Rewrite SortKeys config options to be a lot simpler…
connorshea 6b7ccaa
fmt
connorshea d0b25c0
docs(linter): Provide correct config docs for eslint/no-inner-declara…
connorshea d32281e
Clean the code up a bit.
connorshea bbfd138
Resolve lint warning and fix feedback.
connorshea 4eeccd3
Resolve feedback.
connorshea d71a82b
Resolve lint warnings.
connorshea 96cf9ae
doctests lol
connorshea 5c771ef
docs(linter): Update eslint/func-style rule to fix the config option …
connorshea 414a7f5
docs(linter): Add auto-generated config option docs for `eslint/arrow…
connorshea 536781c
Revert no_inner_declarations.rs back to its state on main.
connorshea 962bfe2
Appease the linter.
connorshea fdc4795
Remove all but one usage of clone in DefaultRuleConfig deserialization.
connorshea 332f8ea
refactor(linter): Remove support for double-object tuples.
connorshea 948e173
Add another test case.
connorshea 3fea757
Fix tuple test to use an actual tuple struct.
connorshea 8375a6d
Remove test for handling of extra elements, no need to support that.
connorshea 43c982a
refactor: Avoid converting into an array and then back for no reason.
connorshea 200d057
Flatten the code a bit.
connorshea 19b5d40
Add a few comments.
connorshea 5d40c28
Create an assert function to simplify testing the DefaultRuleConfig.
connorshea a6a0eb1
Update one more test to use the custom assert fn
connorshea 5f2ee80
Resolve lint violations.
connorshea 232b8ba
docs(linter): Updated `eslint/yoda` rule with auto-gen config options…
connorshea 48cda35
fix(linter): Fix default behavior of the `eslint/eqeqeq` rule, and al…
connorshea File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could alternatively do this, but I'm not really sure that's any better/different: