Sha256: 04f1ff6ae78134031c24dde34d88cd37feb1d23b0be625e2a3ba64b6d19e459f

Contents?: true

Size: 284 Bytes

Versions: 5

Compression:

Stored size: 284 Bytes

Contents

module Overcommit::Hook::PreCommit
  # Runs `jsxhint` against any modified JSX files.
  class JsxHint < Base
    def run
      result = execute([executable] + applicable_files)
      output = result.stdout

      return :pass if output.empty?

      [:fail, output]
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
jawshooah-overcommit-0.22.0 lib/overcommit/hook/pre_commit/jsx_hint.rb
overcommit-0.21.0 lib/overcommit/hook/pre_commit/jsx_hint.rb
overcommit-0.20.0 lib/overcommit/hook/pre_commit/jsx_hint.rb
overcommit-0.19.0 lib/overcommit/hook/pre_commit/jsx_hint.rb
overcommit-0.18.0 lib/overcommit/hook/pre_commit/jsx_hint.rb