mirror of
https://github.com/nextcloud/passman.git
synced 2025-07-22 01:29:13 +00:00
Add JSHint, solve all problems
This commit is contained in:
27
Gruntfile.js
27
Gruntfile.js
@ -25,7 +25,30 @@ module.exports = function (grunt) {
|
||||
dest: 'js/templates.js'
|
||||
}
|
||||
},
|
||||
|
||||
jshint: {
|
||||
options: {
|
||||
curly: false,
|
||||
eqeqeq: true,
|
||||
eqnull: true,
|
||||
browser: true,
|
||||
globals: {
|
||||
"angular": true,
|
||||
"PassmanImporter": true,
|
||||
"OC": true,
|
||||
"window": true,
|
||||
"console": true,
|
||||
"CRYPTO": true,
|
||||
"C_Promise": true,
|
||||
"forge": true,
|
||||
"sjcl": true,
|
||||
"jQuery": true,
|
||||
"$": true,
|
||||
"_": true,
|
||||
"oc_requesttoken": true
|
||||
}
|
||||
},
|
||||
all: ['Gruntfile.js', 'js/app/**/*.js']
|
||||
},
|
||||
sass: {
|
||||
dist: {
|
||||
files: [
|
||||
@ -82,7 +105,9 @@ module.exports = function (grunt) {
|
||||
grunt.loadNpmTasks('grunt-contrib-uglify');
|
||||
grunt.loadNpmTasks('grunt-html2js');
|
||||
grunt.loadNpmTasks('grunt-contrib-watch');
|
||||
grunt.loadNpmTasks('grunt-contrib-jshint');
|
||||
// Default task(s).
|
||||
grunt.registerTask('default', ['html2js', 'sass']);
|
||||
grunt.registerTask('hint', ['jshint']);
|
||||
|
||||
};
|
Reference in New Issue
Block a user