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: Consistent wording in rules README #5630

Merged
merged 1 commit into from
Mar 22, 2016

Conversation

alberto
Copy link
Member

@alberto alberto commented Mar 20, 2016

No description provided.

@mention-bot
Copy link

By analyzing the blame information on this pull request, we identified @btmills, @kentor and @gcochard to be potential reviewers

@eslintbot
Copy link

LGTM

@ilyavolodin
Copy link
Member

Nice! The only thing, we should also modify rule's pages with the same changes.

@alberto
Copy link
Member Author

alberto commented Mar 20, 2016

Yeah, I originally intended to put this first for approval and ask about also changing the rules, but then I forgot 😅

@pedrottimark
Copy link
Member

Super! You reduced 20 description prefixes to 8 verbs: disallow, encourage, enforce, ensure, require, restrict, specify, treat…as if

As suggested in #5630 (comment), how about a common pattern of rule-name: rule description

That is:

  • in the rule list, s/ - /: /
  • in rule pages, move the rule-name from the end to the beginning followed by colon instead of enclosed in parentheses; use the description from the list in most cases, therefore reduce capitalization from Title Caps to phrase capitalization; omit the (recommended) and (fixable) suffixes

@alberto
Copy link
Member Author

alberto commented Mar 21, 2016

Do you think the list of verbs could be further reduced?

@alberto
Copy link
Member Author

alberto commented Mar 21, 2016

@pedrottimark where do you want to remove the suffixes from? I did a quick search and only found (recommended) and (fixable) in the README.

For the other proposed changes, can someone from @eslint/eslint-team confirm this is desired before I go and change all the rules docs?

@pedrottimark
Copy link
Member

@alberto what I meant is that the rule descriptions in the list seem stronger than in the rule pages when there is a difference, but if we copy that text, we don’t want to bring (recommended) or (fixable) into the rule pages. Does that make sense?

To your previous #5630 (comment):
Yes, a good goal is to reduce the verbs so they correspond to use cases for rules.
By the way, unclear or inconsistentent noun phrases in rule descriptions have been on the back burner of my brain.

@kaicataldo
Copy link
Member

Just for some context, currently (recommended) and (fixable) are used to add the icons on the rules list page: eslint/archive-website#180

Makes sense to me to not necessarily bring those labels into the rule page itself

@alberto
Copy link
Member Author

alberto commented Mar 21, 2016

@pedrottimark @kaicataldo thanks, now I see what you meant

@pedrottimark
Copy link
Member

May I suggest wait on updates to the rule pages to avoid merge conflicts with the updates to sentences preceding example code?

You might want to look at pictures of some previously suggested, but not yet decided, improvements to the icons in rules list and rule pages:

They are independent of wording improvements, but the whole is more than the sum of the parts ;)

@alberto
Copy link
Member Author

alberto commented Mar 21, 2016

Ok, so I updated the README with the proposed changes for now. We can later create another PR for the rules.

@nzakas
Copy link
Member

nzakas commented Mar 22, 2016

What's the verdict on merging this? Wait?

@pedrottimark
Copy link
Member

This is a great step forward, which seems well worth merging.

Because it is so much easier to see potential improvements in the context of the entire list, how about leaving open the opportunity to iterate on it a few times before updating the rule pages? Their headings have been inconsistent with the list for a while now, from previous rounds of editing.

Is it time to change from lists to tables with check mark and wrench icon at the left? I could make a follow-up pull request soon. It depends on just one more replace rule in the doc.html layout file at eslint.github.io

@nzakas
Copy link
Member

nzakas commented Mar 22, 2016

@pedrottimark I don't care how many times we iterate as long as things are improving. My only concern is that the longer these doc change PRs sit, the more potential for problems as documentation is being updated and added. I just want to keep things moving.

@pedrottimark
Copy link
Member

👍

ilyavolodin added a commit that referenced this pull request Mar 22, 2016
Docs: Consistent wording in rules README
@ilyavolodin ilyavolodin merged commit 1550676 into master Mar 22, 2016
@alberto alberto deleted the readme-consistent-wording branch March 22, 2016 21:41
@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Feb 6, 2018
@eslint-deprecated eslint-deprecated bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label Feb 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived due to age This issue has been archived; please open a new issue for any further discussion
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants