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

Component generator option to turn off semicolons #115

Open
ukazap opened this issue Aug 22, 2018 · 2 comments
Open

Component generator option to turn off semicolons #115

ukazap opened this issue Aug 22, 2018 · 2 comments

Comments

@ukazap
Copy link

ukazap commented Aug 22, 2018

When I run rails g component button, it creates js file, and also appends to index.js, both contains semicolons. In my project I don't use semicolons, wouldn't it be nice if I could specify option in application.rb, e.g.:

config.generators do |g|
  g.komponent semicolon: false
end
@Spone
Copy link
Collaborator

Spone commented Aug 22, 2018

Hi @ukazap thanks for opening an issue.

This is related to #105 where we discuss preference between single and double quotes. It would be great to have a common solution to specify code style preferences.

Do you use eslint or another similar tool?

@ukazap
Copy link
Author

ukazap commented Aug 23, 2018

@Spone yes, I am using eslint + prettier

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

No branches or pull requests

2 participants