mirror of
https://github.com/node-red/node-red.git
synced 2025-12-26 23:26:46 +01:00
Fix all jshint warnings in core code
This commit is contained in:
24
Gruntfile.js
24
Gruntfile.js
@@ -44,11 +44,31 @@ module.exports = function(grunt) {
|
||||
},
|
||||
all: [
|
||||
'Gruntfile.js',
|
||||
'public/red/**/*.js',
|
||||
'red.js',
|
||||
'red/**/*.js',
|
||||
'nodes/**/*.js',
|
||||
'public/red/**/*.js'
|
||||
],
|
||||
|
||||
core: {
|
||||
files: {
|
||||
src: [
|
||||
'Gruntfile.js',
|
||||
'red.js',
|
||||
'red/**/*.js'
|
||||
]
|
||||
}
|
||||
},
|
||||
nodes: {
|
||||
files: {
|
||||
src: [ 'nodes/**/*.js' ]
|
||||
}
|
||||
},
|
||||
editor: {
|
||||
files: {
|
||||
src: [ 'public/red/**/*.js' ]
|
||||
}
|
||||
},
|
||||
tests: {
|
||||
files: {
|
||||
src: ['test/*.js']
|
||||
@@ -65,6 +85,6 @@ module.exports = function(grunt) {
|
||||
grunt.loadNpmTasks('grunt-contrib-jshint');
|
||||
|
||||
grunt.registerTask('default', ['jshint:tests','simplemocha']);
|
||||
grunt.registerTask('all', ['jshint:all','default']);
|
||||
grunt.registerTask('all', ['jshint:core','jshint:nodes','jshint:editor','default']);
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user