mirror of
https://github.com/searxng/searxng.git
synced 2025-08-03 10:32:21 +02:00
[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>
This commit is contained in:
parent
f73a00dcee
commit
a3f58a3a3d
3 changed files with 20 additions and 11 deletions
8
searx/static/themes/simple/.jshintrc
Normal file
8
searx/static/themes/simple/.jshintrc
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"proto": true,
|
||||
"globals": {
|
||||
"browser": true,
|
||||
"jQuery": false,
|
||||
"devel": true
|
||||
}
|
||||
}
|
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue