mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
eslint: grunt integration
This commit is contained in:
parent
2948a99b6e
commit
0ee316f3d1
4 changed files with 6 additions and 13 deletions
|
|
@ -9,15 +9,13 @@ module.exports = function(grunt) {
|
|||
watch: {
|
||||
scripts: {
|
||||
files: ['src/**'],
|
||||
tasks: ['jshint', 'copy', 'concat', 'uglify', 'less:development', 'less:production']
|
||||
tasks: ['eslint', 'copy', 'concat', 'uglify', 'less:development', 'less:production']
|
||||
}
|
||||
},
|
||||
jshint: {
|
||||
files: ['src/js/main/*.js', 'src/js/head/*.js', '../__common__/js/*.js'],
|
||||
},
|
||||
eslint: {
|
||||
options: {
|
||||
configFile: '.eslintrc.json'
|
||||
configFile: '.eslintrc.json',
|
||||
failOnError: false
|
||||
},
|
||||
target: [
|
||||
'src/js/main/*.js',
|
||||
|
|
@ -204,8 +202,7 @@ module.exports = function(grunt) {
|
|||
grunt.registerTask('test', ['jshint']);
|
||||
|
||||
grunt.registerTask('default', [
|
||||
// 'eslint',
|
||||
'jshint',
|
||||
'eslint',
|
||||
'stylelint',
|
||||
'copy',
|
||||
'concat',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue