Sha256: 7c9794fa27fb2e182430605cc8094b297eec73aa3ea00ae280d99eae183fbd99
Contents?: true
Size: 564 Bytes
Versions: 32
Compression:
Stored size: 564 Bytes
Contents
require "rails/generators" module ReactOnRails module Generators class JsLintersGenerator < Rails::Generators::Base Rails::Generators.hide_namespace(namespace) source_root File.expand_path("../templates", __FILE__) # NOTE: linter modules are included via template in base/base/client/package.json.tt def copy_js_linter_config_files base_path = "js_linters/" %w(client/.eslintrc client/.eslintignore client/.jscsrc).each { |file| copy_file(base_path + file, file) } end end end end
Version data entries
32 entries across 32 versions & 1 rubygems