class Suspenders::StylelintGenerator

Public Instance Methods

copy_stylelint_config() click to toggle source
# File lib/suspenders/generators/stylelint_generator.rb, line 15
def copy_stylelint_config
  copy_file "stylelintrc.json", ".stylelintrc.json"
end
install_stylelint() click to toggle source
# File lib/suspenders/generators/stylelint_generator.rb, line 10
def install_stylelint
  dependencies = ["stylelint", "@thoughtbot/stylelint-config"]
  action YarnInstall.new(self, dependencies, "--dev")
end
setup_hound() click to toggle source
# File lib/suspenders/generators/stylelint_generator.rb, line 5
def setup_hound
  action InvokeGenerator.new(self, "suspenders:lint")
  action ToggleComments.new(self, ".hound.yml", /stylelintrc/)
end