wbuchwalter / tslint-loader

tslint loader for webpack
192 stars 65 forks source link

tslint-loader ignores linterOptions.exclude #104

Open martpie opened 6 years ago

martpie commented 6 years ago

Hello, just reporting a small issue I have.

This is a part of my TSLint config:

{
  "linterOptions": {
    "exclude": [
      "node_modules",
      "target",
      "src/ui/client/**/*"
    ]
  },
  ...
}

and the directory src/ui/client/**/* is getting linted when using Webpack, but not when running TSLint directly.

A workaround was to add this exclude rule in my Webpack config:

{
  test: /\.(tsx|ts)?$/,
  enforce: 'pre',
  loader: 'tslint-loader',
  exclude: [
    path.resolve(__dirname, 'src/ui/client')
  ]
},

but I would expect tslint-loader to do this automatically. Is this a bug or a feature?

victorz commented 5 years ago

We still have this issue -- is there a fix in the works? :heart: