komposable / komponent

An opinionated way of organizing front-end code in Ruby on Rails, based on components
http://komponent.io
MIT License
427 stars 31 forks source link

Component generator option to turn off semicolons #115

Open ukazap opened 6 years ago

ukazap commented 6 years ago

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 commented 6 years ago

Hi @ukazap thanks for opening an issue.

This is related to https://github.com/komposable/komponent/pull/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 commented 6 years ago

@Spone yes, I am using eslint + prettier