Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(eslint-plugin): [member-ordering] add a required option for requ…
…ired vs. optional member ordering (#5965) * fix(eslint-plugin): [member-ordering] add requiredFirst as an option which ensures that all required members appear before all optional members. * fix(eslint-plugin): [member-ordering] adding types so build passes. * fix(eslint-plugin): [member-ordering] fixing types so build passes. * fix(eslint-plugin): [member-ordering] refactoring getIndexOfLastRequiredMember to be slightly faster and adding jsdoc comments for it and isMemberOptional. * fix(eslint-plugin): [member-ordering] additional test cases and handling for them. * fix(eslint-plugin): [member-ordering] linting fix. * fix(eslint-plugin): [member-ordering] change requiredFirst to required which takes first or last as a value and adding functionality to check order based on both of these along with additional tests. * fix(eslint-plugin): [member-ordering] refactoring according to PR comments. * fix(eslint-plugin): [member-ordering] refactoring for PR and adding another test case. * fix(eslint-plugin): [member-ordering] refactoring for PR. * fix(eslint-plugin): [member-ordering] adding test cases for coverage and removing unused code. * fix(eslint-plugin): [member-ordering] increasing coverage to pass check. * feat(eslint-plugin): [member-ordering] adding more tests to increase coverage for isMemberOptional function. * Updated name to optionalityOrder Co-authored-by: Josh Goldberg <git@joshuakgoldberg.com>
- Loading branch information
1 parent
becd1f8
commit 2abadc6
Showing
5 changed files
with
718 additions
and
17 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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.