How to use the ignore.isPathValid function in ignore

To help you get started, we’ve selected a few ignore examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github liximomo / vscode-sftp / src / core / ignore.ts View on Github external
ignores(pathname): boolean {
    if (!GitIgnore.isPathValid(pathname)) {
      return false;
    }

    return this.ignore.ignores(pathname);
  }
}

ignore

Ignore is a manager and filter for .gitignore rules, the one used by eslint, gitbook and many others.

MIT
Latest version published 2 months ago

Package Health Score

83 / 100
Full package analysis