2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

tslintの特定のファイルや、ディレクトリの除外の設定方法

Posted at

tslintで除外をしたかったが、日本語で直球のタイトルで1ページ目に引っかかる記事がなかったので、記す。

tslint.jsonに設定を記述する。

{
  "extends": "tslint:latest",
  "linterOptions": {
      "exclude": [
          "bin",
          "lib/*generated.js"
      ]
  }
}

linterOptions?: { exclude?: string[] }:
exclude: string[]: An array of globs. Any file matching these globs will not be linted. All exclude patterns are relative to the configuration file they were specified in.
format: string: Default lint formatter

.tslintignoreとか、記事書いた時点ではなさそう。

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?