We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d786b93 commit 9a0a2a6Copy full SHA for 9a0a2a6
Rakefile
@@ -4,7 +4,3 @@
4
require File.expand_path("../config/application", __FILE__)
5
6
Rails.application.load_tasks
7
-
8
-require "rubocop/rake_task"
9
10
-RuboCop::RakeTask.new
lib/tasks/rubocop.rake
@@ -0,0 +1,13 @@
1
+if %w(development test).include? Rails.env
2
+ require "rubocop/rake_task"
3
+ RuboCop::RakeTask.new
+
+ task(:default).clear
+ desc "JS Linting"
+ task :js_lint do
+ sh "cd client && bin/lint"
+ end
11
12
+ task default: [:spec, :rubocop]
13
+end
0 commit comments