Skip to content

Commit 4b05f01

Browse files
filipesilvahansl
authored andcommitted
test: temporarily disable the tslint disable disabler for Angular CLI files
1 parent 9ce48a5 commit 4b05f01

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

rules/noGlobalTslintDisableRule.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,15 @@ class Walker extends Lint.RuleWalker {
5151
if (sourceFile.fileName.match(/_benchmark.ts$/)) {
5252
return;
5353
}
54-
if (sourceFile.fileName.startsWith(path.join(process.cwd(), 'scripts'))) {
54+
55+
// TODO(filipesilva): remove this once the files are cleaned up.
56+
// Ignore Angular CLI files files.
57+
if (sourceFile.fileName.includes('/angular-cli-files/')) {
58+
return;
59+
}
60+
61+
const scriptsPath = path.join(process.cwd(), 'scripts').replace(/\\/g, '/');
62+
if (sourceFile.fileName.startsWith(scriptsPath)) {
5563
return;
5664
}
5765

0 commit comments

Comments
 (0)