Skip to content

ng lint is ignoring linterOptions property of the tslint config file #11951

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

Closed
michaeljota opened this issue Aug 20, 2018 · 3 comments · Fixed by #11867
Closed

ng lint is ignoring linterOptions property of the tslint config file #11951

michaeljota opened this issue Aug 20, 2018 · 3 comments · Fixed by #11867

Comments

@michaeljota
Copy link

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting (search: `linterOptions`)
- [ ] feature request

Command (mark with an x)

- [ ] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [x] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Versions

node: v8.11.2
npm: 6.0.1
ng:

Angular CLI: 1.6.3
Node: 8.11.2
OS: win32 x64
Angular: 5.2.11
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

@angular/cli: 1.6.3
@angular-devkit/build-optimizer: 0.0.42
@angular-devkit/core: 0.0.29
@angular-devkit/schematics: 0.0.52
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.9.3
@schematics/angular: 0.1.17
typescript: 2.5.3
webpack: 3.10.0

Repro steps

Add a linterOptions property in the tslint.json config file, and configure a exclude list of files globs to be ignored.

{
  "linterOptions": {
    "exclude": [
      "/**/*.spec.ts"
    ]
  },
}

The log given by the failure

spec files are linting anyway.

Desired functionality

spec files should not be checked.

Mention any other details that might be useful

@alan-agius4
Copy link
Collaborator

alan-agius4 commented Aug 21, 2018

Duplicate of #11773, as an temporary solution can you try to remove the leading /?

@michaeljota
Copy link
Author

Will try. Thanks!

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants