komposable / komponent

An opinionated way of organizing front-end code in Ruby on Rails, based on components

Home Page:http://komponent.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Component generator option to turn off semicolons

ukazap opened this issue · comments

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

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?

@Spone yes, I am using eslint + prettier