Skip to content

New rule for checking single quotes#66

Closed
dishad wants to merge 2 commits intohtmlhint:masterfrom
dishad:checkSingleQuotes
Closed

New rule for checking single quotes#66
dishad wants to merge 2 commits intohtmlhint:masterfrom
dishad:checkSingleQuotes

Conversation

@dishad
Copy link
Contributor

@dishad dishad commented Aug 18, 2015

This rule allows people to have HTMLHint check their html for single quotes instead of double quotes or no quotes at all.

Copy link
Contributor

Choose a reason for hiding this comment

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

equal code:

if(attr.quote === '"'){

@yaniswang
Copy link
Contributor

Can you tell me when to use single quotes?

@dishad
Copy link
Contributor Author

dishad commented Oct 7, 2015

It is mainly a styling preference, I think people who would use single quotes in their JavaScript code would also prefer their HTML to use single quotes to keep all files consistent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants