summaryrefslogtreecommitdiff
path: root/searx/static/themes/simple/gruntfile.js
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-08-31 13:24:06 +0200
committerGitHub <noreply@github.com>2021-08-31 13:24:06 +0200
commit66a27757fd8a8187c89a696f9af1d4ff913d4657 (patch)
treebdf32bede36a3b34b0ad6d00dd4d0415776ba07a /searx/static/themes/simple/gruntfile.js
parente44f4dc4b341105d7e7b23173966bcc6fd76d747 (diff)
parent0ee316f3d1561853ceb26fc3cf4ec673f575168d (diff)
Merge pull request #244 from return42/eslint-simple-client
[mod] simple theme - add ESLint
Diffstat (limited to 'searx/static/themes/simple/gruntfile.js')
-rw-r--r--searx/static/themes/simple/gruntfile.js17
1 files changed, 13 insertions, 4 deletions
diff --git a/searx/static/themes/simple/gruntfile.js b/searx/static/themes/simple/gruntfile.js
index 7e5ad5466..47e5a962e 100644
--- a/searx/static/themes/simple/gruntfile.js
+++ b/searx/static/themes/simple/gruntfile.js
@@ -9,11 +9,19 @@ 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',
+ failOnError: false
+ },
+ target: [
+ 'src/js/main/*.js',
+ 'src/js/head/*.js',
+ '../__common__/js/*.js'
+ ],
},
stylelint: {
options: {
@@ -189,11 +197,12 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-webfont');
grunt.loadNpmTasks('grunt-stylelint');
+ grunt.loadNpmTasks('grunt-eslint');
grunt.registerTask('test', ['jshint']);
grunt.registerTask('default', [
- 'jshint',
+ 'eslint',
'stylelint',
'copy',
'concat',