【发布时间】:2014-12-17 22:56:50
【问题描述】:
Google 闭包 linter 将对以下代码中的每一行发出警告,因为键名后面有多余的空格。 有没有办法禁用额外的空间检查?我也找不到配置 .gjslintrc 文件的文档。
我也找不到在“gjslint --help”结果中使用的正确标志。
var ngTemplatesOptions = {
prefix : '/',
module : 'lc.directive.tpls',
standalone: false,
htmlmin : {
collapseBooleanAttributes : true,
collapseWhitespace : true,
removeAttributeQuotes : true,
removeComments : true, // Only if you don't use comment directives!
removeEmptyAttributes : true,
removeRedundantAttributes : true,
removeScriptTypeAttributes : true,
removeStyleLinkTypeAttributes: true
}
};
【问题讨论】: