mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Moved JSHint config into the standard .jshintrc file, so that it can be shared with the command line version as well as version that run within IDEs
This commit is contained in:
parent
6c4f00ced8
commit
d778873ba5
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
node_modules
|
40
.jshintrc
Normal file
40
.jshintrc
Normal file
@ -0,0 +1,40 @@
|
||||
{
|
||||
"jquery": true,
|
||||
"browser": true,
|
||||
|
||||
"bitwise":false,
|
||||
"curly": true,
|
||||
"eqnull": true,
|
||||
"globalstrict": true,
|
||||
"devel": true,
|
||||
"eqeqeq": true,
|
||||
"forin": true,
|
||||
"immed": true,
|
||||
"supernew": true,
|
||||
"expr": true,
|
||||
"indent": 2,
|
||||
"latedef": true,
|
||||
"newcap": true,
|
||||
"noarg": true,
|
||||
"noempty": true,
|
||||
"undef": true,
|
||||
"boss": true,
|
||||
"trailing": true,
|
||||
"laxbreak": true,
|
||||
"laxcomma": true,
|
||||
"sub": true,
|
||||
|
||||
"maxlen": 140,
|
||||
|
||||
"globals": {
|
||||
"$LAB": false,
|
||||
"_": false,
|
||||
"$": false,
|
||||
"kbn" : false,
|
||||
"angular" : false,
|
||||
"exports": true,
|
||||
"module": false,
|
||||
"config": false,
|
||||
"moment": false
|
||||
}
|
||||
}
|
31
Gruntfile.js
31
Gruntfile.js
@ -17,34 +17,7 @@ module.exports = function (grunt) {
|
||||
jshint: {
|
||||
files: ['Gruntfile.js', 'js/*.js', 'panels/*/*.js' ],
|
||||
options: {
|
||||
bitwise: true,
|
||||
maxlen: 140,
|
||||
curly: true,
|
||||
eqeqeq: true,
|
||||
immed: true,
|
||||
indent: 2,
|
||||
latedef: true,
|
||||
newcap: true,
|
||||
noarg: true,
|
||||
sub: true,
|
||||
undef: true,
|
||||
boss: true,
|
||||
eqnull: true,
|
||||
globalstrict: true,
|
||||
devel: true,
|
||||
node: true,
|
||||
globals: {
|
||||
'$LAB': false,
|
||||
'_': false,
|
||||
'$': false,
|
||||
'kbn' : false,
|
||||
window: false,
|
||||
document: false,
|
||||
exports: true,
|
||||
module: false,
|
||||
config: false,
|
||||
moment: false
|
||||
}
|
||||
jshintrc: '.jshintrc'
|
||||
}
|
||||
},
|
||||
less: {
|
||||
@ -70,4 +43,4 @@ module.exports = function (grunt) {
|
||||
// Default task.
|
||||
grunt.registerTask('default', ['jshint','less']);
|
||||
|
||||
};
|
||||
};
|
Loading…
Reference in New Issue
Block a user