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

Chore: Format style guide links so they can be clicked #12189

Merged
merged 3 commits into from Nov 13, 2019

Conversation

ivandotv
Copy link
Contributor

What is the purpose of this pull request? (put an "X" next to item)

[ x ] Other, please explain:

What changes did you make? (Give an overview)

When initializing new eslint project and coming to style guide step, visual studio code terminal doesn't properly format style guide links so when user clicks on one of the links (in the terminal) it takes them to e.q https://github.com/airbnb/javascript) (note the ) at the end)
Putting spaces after the opening brace and before the closing brace fixes this issue.
Is there anything you'd like reviewers to focus on?
No

Ivan V added 2 commits August 30, 2019 21:03
When using the initializer and coming to style guide step, visual studio code terminal doesn't properly format style guide links so when user clicks on one of the links it takes them to e.q `https://github.com/airbnb/javascript)` (note the `)` at the end) 
Putting spaces between links and opening and closing braces fixes this.
Properly format styleguide links so they can be clicked
@jsf-clabot
Copy link

jsf-clabot commented Aug 30, 2019

CLA assistant check
All committers have signed the CLA.

@eslint-deprecated eslint-deprecated bot added the triage An ESLint team member will look at this issue soon label Aug 30, 2019
@ivandotv ivandotv changed the title Format style guide links so they can be clicked Chore: Format style guide links so they can be clicked Aug 30, 2019
@platinumazure
Copy link
Member

Hi @ivandotv, thanks for the PR.

Wouldn't it be better to resolve this in Visual Studio Code? I'm not sure https://github.com/airbnb/javascript) is even a valid URL.

@ivandotv
Copy link
Contributor Author

Clicking the airbnb link goes to 404 page on github.com
I can confirm that linux terminals recognize the url properly, so this is vscode editor issue (maybe some other editors too)
However many other npm modules are aware of this issue and they put spaces around links.

@ilyavolodin
Copy link
Member

I think I'd be fine with this fix. It's so minor, it's not worth trying to push it off to VSCode (although it should also be reported there as well).

@mysticatea mysticatea added accepted There is consensus among the team that this change meets the criteria for inclusion cli Relates to ESLint's command-line interface and removed triage An ESLint team member will look at this issue soon labels Sep 14, 2019
@platinumazure
Copy link
Member

I just think spaces in parentheses are kind of ugly. Can we come up with another approach here? Maybe remove the parentheses altogether and use some other approach?

Copy link
Member

@platinumazure platinumazure left a comment

Choose a reason for hiding this comment

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

Is there another approach we could take here? I don't really like this approach.

Are the URLs critical? What if we removed them entirely (but provided them some other way)? Or, could we use a different punctuator that VSCode won't trip on?

@g-plane
Copy link
Member

g-plane commented Sep 29, 2019

We can use colon.

Screenshots:
图片

图片

Links can be detected properly.

@ivandotv
Copy link
Contributor Author

I also like it more with the colon.
Should I make the change?

@g-plane
Copy link
Member

g-plane commented Sep 30, 2019

Feel free to do it!

Remove braces around links and add a colon at the beginning.
Copy link
Member

@platinumazure platinumazure left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

Copy link
Member

@g-plane g-plane left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@aladdin-add aladdin-add merged commit a477707 into eslint:master Nov 13, 2019
@aladdin-add
Copy link
Member

merged, thanks for contributing!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
accepted There is consensus among the team that this change meets the criteria for inclusion archived due to age This issue has been archived; please open a new issue for any further discussion cli Relates to ESLint's command-line interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants