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

no-unused-disable does not work when turned on in a flat config #244

Open
Zamiell opened this issue Aug 6, 2024 · 1 comment
Open

no-unused-disable does not work when turned on in a flat config #244

Zamiell opened this issue Aug 6, 2024 · 1 comment

Comments

@Zamiell
Copy link

Zamiell commented Aug 6, 2024

n/t

@FloBam
Copy link

FloBam commented Sep 30, 2024

Just to add my use case here since I've seen the discussion in #133

It's possible to configure the severity globally with

export default [
    linterOptions: {
      reportUnusedDisableDirectives: 'off',
    },
    [...]
];

With a rule it would be possible to add a file matcher and apply it accordingly (what I would prefer).

Concrete use case: We generate api code via openapi generator, which includes the comments

/* tslint:disable */
/* eslint-disable */

I would like to exclude the directory of the generated code, but everything else should be marked depending of the configured severity(for example error).

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