mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 00:01:48 +08:00
tech(typescript): added tslint to default task
This commit is contained in:
@ -66,11 +66,12 @@ module.filter('interpolateTemplateVars', function(templateSrv) {
|
|||||||
} else {
|
} else {
|
||||||
return templateSrv.replaceWithText(text, scope.row.scopedVars);
|
return templateSrv.replaceWithText(text, scope.row.scopedVars);
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
interpolateTemplateVars.$stateful = true;
|
interpolateTemplateVars.$stateful = true;
|
||||||
|
|
||||||
return interpolateTemplateVars;
|
return interpolateTemplateVars;
|
||||||
});
|
});
|
||||||
|
|
||||||
export function filters() {}
|
// dummy export
|
||||||
|
export {};
|
||||||
|
@ -9,9 +9,6 @@ module.exports = function(config) {
|
|||||||
// list of files / patterns to load in the browser
|
// list of files / patterns to load in the browser
|
||||||
files: [
|
files: [
|
||||||
'public/test/test-main.js',
|
'public/test/test-main.js',
|
||||||
{pattern: 'public_gen/.app_gen/**/*.js', included: false},
|
|
||||||
{pattern: 'public_gen/vendor/**/*.js', included: false},
|
|
||||||
{pattern: 'public_gen/test/**/*.js', included: false},
|
|
||||||
{pattern: 'public_gen/**/*.js', included: false}
|
{pattern: 'public_gen/**/*.js', included: false}
|
||||||
],
|
],
|
||||||
|
|
||||||
@ -28,4 +25,5 @@ module.exports = function(config) {
|
|||||||
singleRun: true,
|
singleRun: true,
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
};
|
};
|
||||||
|
@ -6,6 +6,7 @@ module.exports = function(grunt) {
|
|||||||
grunt.registerTask('default', [
|
grunt.registerTask('default', [
|
||||||
'jscs',
|
'jscs',
|
||||||
'jshint',
|
'jshint',
|
||||||
|
'tslint',
|
||||||
'clean:gen',
|
'clean:gen',
|
||||||
'copy:public_to_gen',
|
'copy:public_to_gen',
|
||||||
'css',
|
'css',
|
||||||
|
Reference in New Issue
Block a user