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/package.json | 1 + 1 file changed, 1 insertion(+) (limited to 'searx/static/themes/simple/package.json') diff --git a/searx/static/themes/simple/package.json b/searx/static/themes/simple/package.json index 356230f52..321d44556 100644 --- a/searx/static/themes/simple/package.json +++ b/searx/static/themes/simple/package.json @@ -30,6 +30,7 @@ "all": "npm install && grunt", "build": "grunt", "eslint": "grunt eslint", + "eslint-fix": "grunt eslint --fix", "watch": "grunt watch", "webfont": "grunt webfont", "clean": "rm -Rf node_modules package-lock.json ion.less", -- cgit v1.2.3 From f287787c44956a6584f78fdd9d6bf423384d1643 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Tue, 14 Dec 2021 07:50:53 +0100 Subject: [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 --- searx/static/themes/simple/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'searx/static/themes/simple/package.json') diff --git a/searx/static/themes/simple/package.json b/searx/static/themes/simple/package.json index 321d44556..b90d6de70 100644 --- a/searx/static/themes/simple/package.json +++ b/searx/static/themes/simple/package.json @@ -4,7 +4,6 @@ "grunt": "~1.4.1", "grunt-contrib-copy": "^1.0.0", "grunt-contrib-cssmin": "^4.0.0", - "grunt-contrib-jshint": "~3.1.1", "grunt-contrib-less": "~3.0.0", "grunt-contrib-uglify": "~5.0.1", "grunt-xmlmin": "~0.1.8", @@ -29,6 +28,7 @@ "scripts": { "all": "npm install && grunt", "build": "grunt", + "test": "grunt test", "eslint": "grunt eslint", "eslint-fix": "grunt eslint --fix", "watch": "grunt watch", -- cgit v1.2.3