LoginSignup
30
19

More than 5 years have passed since last update.

tslintのコメントフラグで特定のファイル・部分のlintを無効にする

Last updated at Posted at 2017-09-16

使い方

ファイル内のすべてのルールを無効化

/* tslint:disable */

ファイル内の特定ルールを無効化

/* tslint:disable:rule1 rule2 rule3... */

コメントの次の行のすべてのルールを無効化

// tslint:disable-next-line

コメントの次の行の特定のルールを無効化

// tslint:disable-next-line:rule1 rule2 rule3...
@Directive({
  // tslint:disable-next-line:directive-selector
  selector: 'img[default]',
})

参考

30
19
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
30
19