use .jshintrc for editors and IDEs support

This commit is contained in:
Ulrich Sossou
2013-11-16 23:15:22 +01:00
parent 8e17aabf64
commit d6d142e90f
2 changed files with 14 additions and 13 deletions

13
.jshintrc Normal file
View File

@ -0,0 +1,13 @@
{
"expr": true,
"browser": true,
"multistr": true,
"globals": {
"jQuery": true,
"ionic": true,
"angular": true,
"console": true,
"module": true,
"document": true
}
}

View File

@ -70,19 +70,7 @@ module.exports = function(grunt) {
jshint: { jshint: {
files: ['Gruntfile.js', 'js/**/*.js', 'test/**/*.js'], files: ['Gruntfile.js', 'js/**/*.js', 'test/**/*.js'],
options: { options: {
// Disable short circuit check, I will not bend to its will. jshintrc: '.jshintrc'
expr: true,
browser: true,
multistr: true,
// options here to override JSHint defaults
globals: {
jQuery: true,
ionic: true,
angular: true,
console: true,
module: true,
document: true
}
} }
}, },
sass: { sass: {