1

I'm aware of this SO post and the request on github, but it seems to not work for me. I tried these options:

tslint src/services/**/*.ts --exclude=src/services/**/*.d.ts

... --exclude "src/services/**/*.d.ts"

... --exclude src/services/**/*.d.ts

... --exclude "src/services/**/*[^.d$].ts"

and also using the shorthand of the --exclude option: -e, but I still get the *.d.ts files linted.

Community
  • 1
  • 1
Milkncookiez
  • 6,817
  • 10
  • 57
  • 96
  • 2
    Your first 3 lines seem to be excluding all the source files themselves, your last line seem to have an incorrect regex. Have you tried `--exclude "**/*.d.ts"` ? – zeh Mar 04 '17 at 14:07
  • @zeh, yeah, sorry, it was just a typo here in the post. In the shell I use the command correctly. :) – Milkncookiez Mar 05 '17 at 15:49
  • 1
    `tslint "src/services/**/*.ts" --exclude "**/*.d.ts"` should work. Use double quotes around both arguments just to play it safe. If this doesn't work, can you verify what version of tslint you're using with `tslint -v`? – JKillian Mar 24 '17 at 17:49

0 Answers0