Skip to content

Commit b583f5a

Browse files
committed
JSHint: Convert Gruntfile single to double quotes
1 parent d85bcb2 commit b583f5a

File tree

1 file changed

+43
-43
lines changed

1 file changed

+43
-43
lines changed

Gruntfile.js

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -4,112 +4,112 @@ module.exports = function(grunt) {
44
"use strict";
55

66
grunt.initConfig({
7-
pkg: grunt.file.readJSON('package.json'),
7+
pkg: grunt.file.readJSON("package.json"),
88
concat: {
99
// used to copy to dist folder
1010
dist: {
1111
files: {
12-
'dist/jquery.validate.js': ['src/core.js', 'src/*.js'],
13-
'dist/additional-methods.js': ['src/additional/additional.js', 'src/additional/*.js']
12+
"dist/jquery.validate.js": ["src/core.js", "src/*.js"],
13+
"dist/additional-methods.js": ["src/additional/additional.js", "src/additional/*.js"]
1414
}
1515
}
1616
},
1717
uglify: {
1818
options: {
1919
preserveComments: false,
20-
banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' +
21-
'<%= grunt.template.today("m/d/yyyy") %>\\n' +
22-
'<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' +
23-
'* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' +
24-
' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */'
20+
banner: "/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - " +
21+
"<%= grunt.template.today('m/d/yyyy') %>\\n" +
22+
"<%= pkg.homepage ? '* ' + pkg.homepage + '\\n' : '' %>" +
23+
"* Copyright (c) <%= grunt.template.today('yyyy') %> <%= pkg.author.name %>;" +
24+
" Licensed <%= _.pluck(pkg.licenses, 'type').join(', ') %> */"
2525
},
2626
all: {
2727
files: {
28-
'dist/jquery.validate.min.js': ['dist/jquery.validate.js'],
29-
'dist/additional-methods.min.js': ['dist/additional-methods.js']
28+
"dist/jquery.validate.min.js": ["dist/jquery.validate.js"],
29+
"dist/additional-methods.min.js": ["dist/additional-methods.js"]
3030
}
3131
}
3232
},
3333
compress: {
3434
dist: {
3535
options: {
36-
mode: 'zip',
36+
mode: "zip",
3737
level: 1,
38-
archive: 'dist/<%= pkg.name %>-<%= pkg.version %>.zip',
38+
archive: "dist/<%= pkg.name %>-<%= pkg.version %>.zip",
3939
pretty: true
4040
},
4141
src: [
42-
'dist/*.js',
43-
'README.md',
44-
'changelog.txt',
45-
'Gruntfile.js',
46-
'package.json',
47-
'demo/**/*.*',
48-
'lib/**/*.*',
49-
'src/localization/**/*.*',
50-
'test/**/*.*'
42+
"dist/*.js",
43+
"README.md",
44+
"changelog.txt",
45+
"Gruntfile.js",
46+
"package.json",
47+
"demo/**/*.*",
48+
"lib/**/*.*",
49+
"src/localization/**/*.*",
50+
"test/**/*.*"
5151
]
5252
}
5353
},
5454
qunit: {
55-
files: ['test/index.html']
55+
files: ["test/index.html"]
5656
},
5757
jshint: {
5858
options: {
5959
jshintrc: true
6060
},
6161
files: [
62-
'src/**/*.js'
62+
"src/**/*.js"
6363
],
6464
test: {
6565
files: {
6666
src: [
67-
'test/*.js'
67+
"test/*.js"
6868
]
6969
}
7070
},
7171
grunt: {
7272
files: {
7373
src: [
74-
'Gruntfile.js'
74+
"Gruntfile.js"
7575
]
7676
}
7777
}
7878
},
7979
watch: {
8080
gruntfile: {
81-
files: 'Gruntfile.js',
82-
tasks: ['jshint:grunt']
81+
files: "Gruntfile.js",
82+
tasks: ["jshint:grunt"]
8383
},
8484
src: {
85-
files: '<%= jshint.files %>',
86-
tasks: ['concat', 'qunit']
85+
files: "<%= jshint.files %>",
86+
tasks: ["concat", "qunit"]
8787
},
8888
test: {
89-
files: ['<%= jshint.test.files.src %>', 'test/index.html'],
90-
tasks: ['jshint:test']
89+
files: ["<%= jshint.test.files.src %>", "test/index.html"],
90+
tasks: ["jshint:test"]
9191
}
9292
},
9393
jscs: {
9494
all: {
9595
options: {
96-
preset: 'jquery'
96+
preset: "jquery"
9797
},
98-
src: 'src/**/*.*'
98+
src: "src/**/*.*"
9999
}
100100
}
101101
});
102102

103-
grunt.loadNpmTasks('grunt-contrib-jshint');
104-
grunt.loadNpmTasks('grunt-contrib-qunit');
105-
grunt.loadNpmTasks('grunt-contrib-uglify');
106-
grunt.loadNpmTasks('grunt-contrib-concat');
107-
grunt.loadNpmTasks('grunt-contrib-compress');
108-
grunt.loadNpmTasks('grunt-contrib-watch');
109-
grunt.loadNpmTasks('grunt-jscs-checker');
103+
grunt.loadNpmTasks("grunt-contrib-jshint");
104+
grunt.loadNpmTasks("grunt-contrib-qunit");
105+
grunt.loadNpmTasks("grunt-contrib-uglify");
106+
grunt.loadNpmTasks("grunt-contrib-concat");
107+
grunt.loadNpmTasks("grunt-contrib-compress");
108+
grunt.loadNpmTasks("grunt-contrib-watch");
109+
grunt.loadNpmTasks("grunt-jscs-checker");
110110

111-
grunt.registerTask('default', ['jscs', 'concat', 'jshint', 'qunit']);
112-
grunt.registerTask('release', ['default', 'uglify', 'compress']);
113-
grunt.registerTask('start', ['concat', 'watch']);
111+
grunt.registerTask("default", ["jscs", "concat", "jshint", "qunit"]);
112+
grunt.registerTask("release", ["default", "uglify", "compress"]);
113+
grunt.registerTask("start", ["concat", "watch"]);
114114

115115
};

0 commit comments

Comments
 (0)