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

docs(eslint-plugin): rewrite member-ordering docs #349

Merged
merged 1 commit into from Mar 13, 2019

Conversation

timkraut
Copy link
Contributor

Part of the PR to enforce an alphabetic order for members is to rewrite the existing docs to better document the current behavior of member-ordering. As this touches almost any line in the rule documentation, I thought it makes sense to open a separate PR for that.

In this PR, I've reworked the entire rule documentation to make it (hopefully) more clear how this rule works. The examples are mostly taken from the current rule documentation - some with little adaptations.
Besides that, I've changed a few names and added some comments in the rule implementation to make it more understandable (basically the points I didn't understand immediately while trying to understand the current implementation to better describe the rule).

@codecov
Copy link

codecov bot commented Mar 12, 2019

Codecov Report

Merging #349 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master     #349   +/-   ##
=======================================
  Coverage   97.24%   97.24%           
=======================================
  Files          67       67           
  Lines        2357     2357           
  Branches      336      336           
=======================================
  Hits         2292     2292           
  Misses         44       44           
  Partials       21       21
Impacted Files Coverage Δ
...ackages/eslint-plugin/src/rules/member-ordering.ts 96.72% <100%> (ø) ⬆️

bradzacher
bradzacher previously approved these changes Mar 12, 2019
Copy link
Member

@bradzacher bradzacher left a comment

Choose a reason for hiding this comment

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

LGTM

@bradzacher bradzacher changed the title feat(eslint-plugin): rewrite member-ordering docs docs(eslint-plugin): rewrite member-ordering docs Mar 12, 2019
@timkraut
Copy link
Contributor Author

I've found a tiny issue which I just fixed (the first code block should be ts not js).

@bradzacher bradzacher merged commit 3b28cac into typescript-eslint:master Mar 13, 2019
@timkraut timkraut deleted the member-ordering-docs branch March 14, 2019 08:34
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants