From 06730588a6401ef604b94986fc19ea5aa97c9035 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Tue, 23 Nov 2021 18:16:23 +0100 Subject: [mod] SearXNG JavaScript Style Guide (eslint:recommended) The SearXNG JavaScript Style Guide is a set of eslint rules [1] based on the eslint:recommended [2] rules. "extends": "eslint:recommended" The additional rules adopted from the JavaScript Standard Style [3][4]. [1] https://eslint.org/docs/rules/ [2] https://github.com/kunalgolani/eslint-config/tree/master/packages/recommended [3] https://standardjs.com/rules.html#javascript-standard-style [4] https://github.com/standard/eslint-config-standard/blob/master/.eslintrc.json Signed-off-by: Markus Heiser --- searx/static/themes/simple/gruntfile.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'searx/static/themes/simple/gruntfile.js') diff --git a/searx/static/themes/simple/gruntfile.js b/searx/static/themes/simple/gruntfile.js index 84f051f23..3602c7457 100644 --- a/searx/static/themes/simple/gruntfile.js +++ b/searx/static/themes/simple/gruntfile.js @@ -27,7 +27,8 @@ module.exports = function(grunt) { eslint: { options: { overrideConfigFile: '.eslintrc.json', - failOnError: false + failOnError: false, + fix: grunt.option('fix') }, target: [ 'svg4web.svgo.js', -- cgit v1.2.3-54-g00ecf