Exclude files and directories
Closed this issue · 3 comments
davidleureka commented
Is it possible to tell the plugin to exclude certain files and directories? I want to run it on my entire codebase but to ignore directories like node_modules
and typings
.
blackat commented
Hi @davidleureka ,
I have had to exclude a file names aliases.ts
where I define namespace aliases and I have done in this way
tslint: {
"options": {
"configuration": "tslint.json",
"rulesDirectory": ["node_modules/tslint-eslint-rules/dist/rules"]
},
"files": {
"src": ["client/app/**/!(aliases).ts"]
}
}
basically you can exclude some patterns from the source files.
I hope it helps.
wald-tq commented
you can exclude specific files / directories in grunt tasks like this:
tslint: {
options: {
configuration: "tslint.json",
force: true
},
all: {
src: [
'js/**/*.ts',
'!js/typings/**'], // <- relevant exclude line
},
which would tslint all ts files in js/
and subdirectories but exclude everything under js/typings
.
More information see: http://gruntjs.com/configuring-tasks
adidahiya commented
closing as this is already supported by grunt