Skip to content

Commit

Permalink
chore(tslint): use globs for custom rule source file filtering (angul…
Browse files Browse the repository at this point in the history
…ar#6235)

A few custom TSLint rules already accept an option array that can be used to whitelist specific files. These whitelists are based on normal Regular Expressions which do not work very well for path matching.

This commit changes the existing whitelists to use minimatch, which is a package that allows matching strings/paths against globs. For rules like `requireLicenseBanner` where the whitelist is hardcoded right now, the whitelist has been introduced as well.
  • Loading branch information
devversion authored and tinayuangao committed Aug 4, 2017
1 parent 1af2ce6 commit 991c1e0
Show file tree
Hide file tree
Showing 6 changed files with 936 additions and 20 deletions.
Loading

0 comments on commit 991c1e0

Please sign in to comment.