Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tslint-loader ignores linterOptions.exclude #104

Open
martpie opened this issue Jun 15, 2018 · 1 comment
Open

tslint-loader ignores linterOptions.exclude #104

martpie opened this issue Jun 15, 2018 · 1 comment

Comments

@martpie
Copy link

martpie commented Jun 15, 2018

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?

@martpie martpie changed the title tslint-loader ignore linterOptions.exclude tslint-loader ignores linterOptions.exclude Jun 15, 2018
@victorz
Copy link

victorz commented Dec 7, 2018

We still have this issue -- is there a fix in the works? ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants