summaryrefslogtreecommitdiff
path: root/lib/tasks/eslint.rake
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tasks/eslint.rake')
-rw-r--r--lib/tasks/eslint.rake7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/tasks/eslint.rake b/lib/tasks/eslint.rake
new file mode 100644
index 00000000000..d43cbad1909
--- /dev/null
+++ b/lib/tasks/eslint.rake
@@ -0,0 +1,7 @@
+unless Rails.env.production?
+ desc "GitLab | Run ESLint"
+ task :eslint do
+ system("npm", "run", "eslint")
+ end
+end
+