fix eslint slowness
refs DE-1446 Change-Id: Id25e72c78703177b2692f62267c8d910b0dfb8d8 Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/304798 Reviewed-by: Aaron Shafovaloff <ashafovaloff@instructure.com> QA-Review: Aaron Ogata <aogata@instructure.com> Product-Review: Aaron Ogata <aogata@instructure.com> Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
This commit is contained in:
parent
807fab3aee
commit
9713403131
|
@ -4,12 +4,13 @@
|
|||
require_relative "./linter"
|
||||
|
||||
linter_options = {
|
||||
file_regex: %r{^ui/.*\.(?:js|ts|tsx)$},
|
||||
linter_name: "eslint",
|
||||
format: "eslint",
|
||||
command: "node_modules/.bin/eslint ui --quiet --ext '.js,.ts,.tsx'",
|
||||
command: "node_modules/.bin/eslint",
|
||||
campsite_mode: false,
|
||||
boyscout_mode: false,
|
||||
append_files_to_command: false,
|
||||
append_files_to_command: true,
|
||||
severe_anywhere: true
|
||||
}
|
||||
|
||||
|
@ -20,7 +21,7 @@ puts "Linting sub-packages"
|
|||
|
||||
linter_options[:command] = "yarn lint"
|
||||
linter_options[:base_dir] = "../../"
|
||||
linter_options[:append_files_to_command] = true
|
||||
linter_options[:file_regex] = nil
|
||||
linter_options[:severe_anywhere] = false
|
||||
|
||||
package_dirs = `ls -1 packages/*/package.json 2> /dev/null`.split("\n").map { |d| d.sub("/package.json", "") }
|
||||
|
|
Loading…
Reference in New Issue