diff options
| author | Alexandre Flament <alex@al-f.net> | 2021-06-25 09:02:35 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-25 09:02:35 +0200 |
| commit | c91603dae9d89c10b67b58c5c52385b75e89379c (patch) | |
| tree | c9cff6b6376def4849810299984b3796c88794b2 /searx/static/themes/simple/gruntfile.js | |
| parent | e73a96b5f9c55e3b6eb6b95515b18d46308ee1c1 (diff) | |
| parent | a3f58a3a3d099cf6c5dfd533f76d97623146e079 (diff) | |
Merge pull request #168 from return42/stylelint
Lint the less files of the simple theme
Diffstat (limited to 'searx/static/themes/simple/gruntfile.js')
| -rw-r--r-- | searx/static/themes/simple/gruntfile.js | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/searx/static/themes/simple/gruntfile.js b/searx/static/themes/simple/gruntfile.js index e34d4ee4f..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,14 @@ module.exports = function(grunt) { }, jshint: { files: ['src/js/main/*.js', 'src/js/head/*.js', '../__common__/js/*.js'], + }, + stylelint: { options: { - reporterOutput: "", - proto: true, - // options here to override JSHint defaults - globals: { - browser: true, - jQuery: false, - devel: true - } - } + formatter: 'unix', + }, + src: [ + 'src/less/**/*.less', + ] }, copy: { js: { @@ -114,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', @@ -191,8 +191,17 @@ module.exports = function(grunt) { grunt.loadNpmTasks('grunt-contrib-less'); grunt.loadNpmTasks('grunt-contrib-cssmin'); grunt.loadNpmTasks('grunt-webfont'); + grunt.loadNpmTasks('grunt-stylelint'); grunt.registerTask('test', ['jshint']); - grunt.registerTask('default', ['jshint', 'copy', 'concat', 'uglify', 'less:development', 'less:production']); + grunt.registerTask('default', [ + 'jshint', + 'stylelint', + 'copy', + 'concat', + 'uglify', + 'less:development', + 'less:production' + ]); }; |