Skip to content

tslint-loader ignores linterOptions.exclude #104

@martpie

Description

@martpie

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions