mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-05 05:38:49 +08:00
use .jshintrc for editors and IDEs support
This commit is contained in:
13
.jshintrc
Normal file
13
.jshintrc
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"expr": true,
|
||||||
|
"browser": true,
|
||||||
|
"multistr": true,
|
||||||
|
"globals": {
|
||||||
|
"jQuery": true,
|
||||||
|
"ionic": true,
|
||||||
|
"angular": true,
|
||||||
|
"console": true,
|
||||||
|
"module": true,
|
||||||
|
"document": true
|
||||||
|
}
|
||||||
|
}
|
||||||
14
Gruntfile.js
14
Gruntfile.js
@ -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: {
|
||||||
|
|||||||
Reference in New Issue
Block a user