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

Add options for different html / hbs quote styles in quotes rule #2754

Merged
merged 4 commits into from May 24, 2023

Conversation

robclancy
Copy link
Contributor

I think I did this right?

Fixes #617

Personally I think the default config should be as described in the issue above with double only used for HTML attributes. Also the config forces the need to specify both hbs and html but it could also just default to double for whichever one of those is missing. So for example you could just do { hbs: 'single' } to get the same functionality, essentially still using double as a default.

Some code/messages etc in here could probably use better words. Maybe moustache/curlies instead of handlebars for example. And HTML Attributes instead of just HTML. I'm too tired to deal with naming things.

I think it might need more tests too?

Copy link
Member

@bmish bmish left a comment

Choose a reason for hiding this comment

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

Thanks for starting on this!

lib/rules/quotes.js Show resolved Hide resolved
lib/rules/quotes.js Outdated Show resolved Hide resolved
lib/rules/quotes.js Outdated Show resolved Hide resolved
lib/rules/quotes.js Outdated Show resolved Hide resolved
lib/rules/quotes.js Outdated Show resolved Hide resolved
lib/rules/quotes.js Outdated Show resolved Hide resolved
@bmish bmish changed the title quotes: added options to have different quote styles for html and handlebar syntax Add options for different html / hbs quote styles in quotes rule Feb 8, 2023
@bmish
Copy link
Member

bmish commented May 24, 2023

What's the status of this?

@lin-ll
Copy link
Collaborator

lin-ll commented May 24, 2023

What's the status of this?

I noticed that this hadn't been picked up in a while, so I just made some changes to resolve the comments and push it across the finish line. I think it's good to go now - lmk if you have any additional comments. @bmish

Copy link
Member

@bmish bmish left a comment

Choose a reason for hiding this comment

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

Thanks!

@bmish bmish merged commit d9ec9c4 into ember-template-lint:master May 24, 2023
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

more options to quotes rule
4 participants