summaryrefslogtreecommitdiff
path: root/searx/static/themes/simple/gruntfile.js
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2021-06-24 12:12:13 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2021-06-24 13:27:21 +0200
commita3f58a3a3d099cf6c5dfd533f76d97623146e079 (patch)
treec9cff6b6376def4849810299984b3796c88794b2 /searx/static/themes/simple/gruntfile.js
parentf73a00dceecc56a101a00d854eebb8fe60c45e4c (diff)
downloadsearxng-a3f58a3a3d099cf6c5dfd533f76d97623146e079.tar.gz
searxng-a3f58a3a3d099cf6c5dfd533f76d97623146e079.zip
[emacs] .dir-locals.el: add setup for js-mode
- move jshint option from gruntfile to .jshintrc - remove trailing-whitespace from gruntfile and - add jshint esversion: 6 - .dir-locals.el add locals for js-mode to use JSHint from the simple theme 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.js14
1 files changed, 3 insertions, 11 deletions
diff --git a/searx/static/themes/simple/gruntfile.js b/searx/static/themes/simple/gruntfile.js
index 956626148..130f406d9 100644
--- a/searx/static/themes/simple/gruntfile.js
+++ b/searx/static/themes/simple/gruntfile.js
@@ -1,3 +1,5 @@
+/*jshint esversion: 6 */
+
module.exports = function(grunt) {
const path = require('path');
@@ -12,16 +14,6 @@ module.exports = function(grunt) {
},
jshint: {
files: ['src/js/main/*.js', 'src/js/head/*.js', '../__common__/js/*.js'],
- options: {
- reporterOutput: "",
- proto: true,
- // options here to override JSHint defaults
- globals: {
- browser: true,
- jQuery: false,
- devel: true
- }
- }
},
stylelint: {
options: {
@@ -122,7 +114,7 @@ module.exports = function(grunt) {
'node_modules/ionicons-npm/src/ion-close-round.svg',
'node_modules/ionicons-npm/src/android-more-vertical.svg',
'src/fonts/magnet.svg',
- 'node_modules/ionicons-npm/src/android-close.svg',
+ 'node_modules/ionicons-npm/src/android-close.svg',
],
dest: 'fonts',
destLess: 'src/generated',