linter adjustments and refactor prep

This commit is contained in:
Mark Moser
2017-03-06 11:46:28 -06:00
parent 15a5b6b706
commit 8549bd2d15
9 changed files with 117 additions and 95 deletions

View File

@ -77,6 +77,11 @@ guard :shell, all_on_start: true do
system %(echo "ESLint:\033[32m #{file[0]}\033[0m")
system %(./node_modules/eslint/bin/eslint.js #{file[0]})
end
watch %r{app/assets/stylesheets/*/.*} do |file|
system %(echo "sass-lint:\033[32m #{file[0]}\033[0m")
system %(sass-lint --cache --config .sass-lint.yml '#{file[0]}' --verbose --no-exit)
end
end
guard :rubocop, cli: %w(-D -S -a) do