mirror of
https://github.com/searxng/searxng.git
synced 2025-12-22 19:50:00 +00:00
[mod] simple theme - add ESLint
[1] https://eslint.org/ [2] https://eslint.org/docs/user-guide/configuring/ [3] https://eslint.org/docs/user-guide/command-line-interface Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
@@ -15,6 +15,16 @@ module.exports = function(grunt) {
|
||||
jshint: {
|
||||
files: ['src/js/main/*.js', 'src/js/head/*.js', '../__common__/js/*.js'],
|
||||
},
|
||||
eslint: {
|
||||
options: {
|
||||
configFile: '.eslintrc.json'
|
||||
},
|
||||
target: [
|
||||
'src/js/main/*.js',
|
||||
'src/js/head/*.js',
|
||||
'../__common__/js/*.js'
|
||||
],
|
||||
},
|
||||
stylelint: {
|
||||
options: {
|
||||
formatter: 'unix',
|
||||
@@ -189,10 +199,12 @@ module.exports = function(grunt) {
|
||||
grunt.loadNpmTasks('grunt-contrib-cssmin');
|
||||
grunt.loadNpmTasks('grunt-webfont');
|
||||
grunt.loadNpmTasks('grunt-stylelint');
|
||||
grunt.loadNpmTasks('grunt-eslint');
|
||||
|
||||
grunt.registerTask('test', ['jshint']);
|
||||
|
||||
grunt.registerTask('default', [
|
||||
// 'eslint',
|
||||
'jshint',
|
||||
'stylelint',
|
||||
'copy',
|
||||
|
||||
Reference in New Issue
Block a user