mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-29 13:25:40 +08:00
style(*): add numerous JSCS rules to unify code-styles in the tree
Changes: - add rule requireSpaceBeforeBlockStatements (require space before brace when opening block statement) - add operators to rule disallowSpaceAfterPrefixUnaryOperators (no space after prefix inc/dec ops) - add rule disallowSpaceBeforePostfixUnaryOperators (no space before postfix inc/dec ops) - add rule disallowSpacesInsideArrayBrackets (array literals no longer padded with spaces) - add rule requireCommaBeforeLineBreak (line can't start with comma token) - add rule validateLineBreaks (require LF linebreaks) Closes #9792
This commit is contained in:
committed by
Caitlin Potter
parent
2a0254e181
commit
030101a43a
@@ -224,7 +224,7 @@ function outputLocale(localeInfo, localeID) {
|
||||
getDecimals + getVF + getWT +
|
||||
'$provide.value("$locale", ';
|
||||
|
||||
var suffix = ');\n}]);';
|
||||
var suffix = ');\n}]);\n';
|
||||
|
||||
return prefix + content + suffix;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user