grafana/tasks/options/tslint.js
2015-09-14 22:54:00 +02:00

24 lines
602 B
JavaScript

module.exports = function(config) {
return {
source: {
files: {
src: ['<%= srcDir %>/app/**/*.ts', '!<%= srcDir %>/app/**/*.d.ts'],
}
},
options: {
configuration: {
rules: {
curly: true,
align: [true, "parameters", "statements"],
indent: [true, "spaces"],
"class-name": true,
"interface-name": true,
"semicolon": true,
"use-strict": [false, "check-module", "check-function"],
"whitespace": [true, "check-branch", "check-decl", "check-type"],
}
}
}
};
};