diff options
author | winniehell <git@winniehell.de> | 2016-07-23 01:06:17 +0300 |
---|---|---|
committer | winniehell <git@winniehell.de> | 2016-10-26 11:00:55 +0300 |
commit | bf418fcd75023735f892c3445dadd37c0beced67 (patch) | |
tree | fd87466fd126a51386bf8e708a0d8dec21c2145b /lib/tasks/eslint.rake | |
parent | bf389a79b7fd2768d89f5afc723c09e7a1b6c034 (diff) |
add Rake tasks eslint and lint:javascript
Diffstat (limited to 'lib/tasks/eslint.rake')
-rw-r--r-- | lib/tasks/eslint.rake | 7 |
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 + |