Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Commit

Permalink
Enable strictest settings for "whitespace" (#2753)
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-hanson authored and nchen63 committed May 13, 2017
1 parent 240d9a0 commit 2f9bdbf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion src/rules/noNamespaceRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function walk(ctx: Lint.WalkContext<Options>) {
if (ctx.sourceFile.isDeclarationFile && ctx.options.allowDeclarations) {
return;
}
for (const node of ctx.sourceFile.statements){
for (const node of ctx.sourceFile.statements) {
if (node.kind === ts.SyntaxKind.ModuleDeclaration) {
if ((node as ts.ModuleDeclaration).name.kind !== ts.SyntaxKind.StringLiteral &&
(!ctx.options.allowDeclarations || !hasModifier(node.modifiers, ts.SyntaxKind.DeclareKeyword))) {
Expand Down
10 changes: 0 additions & 10 deletions tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,6 @@
"allow-declarations",
"allow-named-functions"
],
"whitespace": {
"options": [
"check-branch",
"check-decl",
"check-operator",
"check-separator",
"check-type",
"check-typecast"
]
},

// TODO: Enable these
"completed-docs": false,
Expand Down

0 comments on commit 2f9bdbf

Please sign in to comment.