CommonSenseCode
CommonSenseCode

Reputation: 25359

Tslint - ignore files containing string: "spec"?

I need to ignore all files containing spec int their name for example MyStuff.spec.ts

How can I make tslint to ignore this type of files?

Upvotes: 5

Views: 2384

Answers (1)

CommonSenseCode
CommonSenseCode

Reputation: 25359

in tsconfig json add:

  "exclude":[
    "node_modules",
    "**/__test*", //exclude all that *__test*
    "**/*.spec.ts" // exclude all that contain "spec.ts" in name
  ]

Upvotes: 3

Related Questions