1 2 3 4 5 6 7 8
unless Rails.env.production? desc "GitLab | Run ESLint" task eslint: ['yarn:check'] do unless system('yarn run eslint') abort('rake eslint failed') end end end