#!/usr/bin/env ruby require_relative './linter' linter_options = { linter_name: "eslint", file_regex: /\.js$/, format: "eslint", command: "node_modules/.bin/eslint", campsite_mode: false, append_files_to_command: true, comment_post_processing: proc do |comments| # This section should be removed when we start -2ing patchsets comments.each do |comment| comment[:severity] = 'warn' end end } eslint = Linter.new(linter_options) eslint.run