summaryrefslogtreecommitdiff
path: root/searx/static/themes/simple/gruntfile.js
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2021-12-14 07:50:53 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2021-12-14 07:50:53 +0100
commitf287787c44956a6584f78fdd9d6bf423384d1643 (patch)
tree15bcc625b749b3434576837414c66e7cab9d31b8 /searx/static/themes/simple/gruntfile.js
parent34f5e9c7a305d20bbebe907d3d1032ca04259537 (diff)
downloadsearxng-f287787c44956a6584f78fdd9d6bf423384d1643.tar.gz
searxng-f287787c44956a6584f78fdd9d6bf423384d1643.zip
[simple theme] activate - SearXNG JavaScript Style Guide
Add the 'SearXNG JavaScript Style Guide' as one quality gate in the build chain of the simple theme:: make themes.simple make themes.simple.test In the github CI the `themes.all` target enforce a `themes.simple`. BTW: Remove 'jshint' left overs from 0ee316f3d Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/static/themes/simple/gruntfile.js')
-rw-r--r--searx/static/themes/simple/gruntfile.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/searx/static/themes/simple/gruntfile.js b/searx/static/themes/simple/gruntfile.js
index aac1217ea..46ab657e0 100644
--- a/searx/static/themes/simple/gruntfile.js
+++ b/searx/static/themes/simple/gruntfile.js
@@ -1,4 +1,4 @@
-/* jshint esversion: 6 */
+/* SPDX-License-Identifier: AGPL-3.0-or-later */
module.exports = function (grunt) {
@@ -27,7 +27,7 @@ module.exports = function (grunt) {
eslint: {
options: {
overrideConfigFile: '.eslintrc.json',
- failOnError: false,
+ failOnError: true,
fix: grunt.option('fix')
},
target: [
@@ -268,13 +268,12 @@ module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-image');
- grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-stylelint');
grunt.loadNpmTasks('grunt-eslint');
- grunt.registerTask('test', ['jshint']);
+ grunt.registerTask('test', ['eslint']);
grunt.registerTask('default', [
'eslint',