diff options
| author | Alexandre Flament <alex@al-f.net> | 2021-08-24 09:52:40 +0200 |
|---|---|---|
| committer | Markus Heiser <markus.heiser@darmarit.de> | 2021-08-31 12:20:23 +0200 |
| commit | 0ee316f3d1561853ceb26fc3cf4ec673f575168d (patch) | |
| tree | a2d2b25c9103e3cf6d1b868087511d8f49bbf5a1 /searx/static/themes/simple/gruntfile.js | |
| parent | 2948a99b6e51c42039025b049d8f92e92b1b7d2c (diff) | |
eslint: grunt integration
Diffstat (limited to 'searx/static/themes/simple/gruntfile.js')
| -rw-r--r-- | searx/static/themes/simple/gruntfile.js | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/searx/static/themes/simple/gruntfile.js b/searx/static/themes/simple/gruntfile.js index 049e21fca..47e5a962e 100644 --- a/searx/static/themes/simple/gruntfile.js +++ b/searx/static/themes/simple/gruntfile.js @@ -9,15 +9,13 @@ module.exports = function(grunt) { watch: { scripts: { files: ['src/**'], - tasks: ['jshint', 'copy', 'concat', 'uglify', 'less:development', 'less:production'] + tasks: ['eslint', 'copy', 'concat', 'uglify', 'less:development', 'less:production'] } }, - jshint: { - files: ['src/js/main/*.js', 'src/js/head/*.js', '../__common__/js/*.js'], - }, eslint: { options: { - configFile: '.eslintrc.json' + configFile: '.eslintrc.json', + failOnError: false }, target: [ 'src/js/main/*.js', @@ -204,8 +202,7 @@ module.exports = function(grunt) { grunt.registerTask('test', ['jshint']); grunt.registerTask('default', [ - // 'eslint', - 'jshint', + 'eslint', 'stylelint', 'copy', 'concat', |