snowtrack / snowfs

Found explicit type declarations JS-0331
Anti-pattern
Major
2 years ago3 years old
Type boolean trivially inferred from a boolean literal, remove type annotation
 46    this.loadPatterns(patterns, nodefaultignore);
 47  }
 48
 49  loadPatterns(patterns: string[], nodefaultignore: boolean = false): void { 50    if (!nodefaultignore) {
 51      this.patterns = this.patterns.concat(DEFAULT_IGNORE_PATTERNS);
 52    }
Type boolean trivially inferred from a boolean literal, remove type annotation
 29export class IgnoreManager {
 30  patterns: string[] = [];
 31
 32  async init(filepath: string | null, nodefaultignore: boolean = false): Promise<void> { 33    const patterns: string[] = [];
 34
 35    if (filepath) {