summaryrefslogtreecommitdiff
path: root/searx/static/themes/simple/gruntfile.js
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-08-24 09:52:40 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2021-08-31 12:20:23 +0200
commit0ee316f3d1561853ceb26fc3cf4ec673f575168d (patch)
treea2d2b25c9103e3cf6d1b868087511d8f49bbf5a1 /searx/static/themes/simple/gruntfile.js
parent2948a99b6e51c42039025b049d8f92e92b1b7d2c (diff)
eslint: grunt integration
Diffstat (limited to 'searx/static/themes/simple/gruntfile.js')
-rw-r--r--searx/static/themes/simple/gruntfile.js11
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',