question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Configuration for rule "@typescript-eslint/ban-ts-comment" is invalid

See original GitHub issue

Hey, I’m getting the following error when launching eslint through the command line:

$ npx eslint src --fix
.eslintrc.js#overrides[1]:
        Configuration for rule "@typescript-eslint/ban-ts-comment" is invalid:
        Value "allow-with-description" should be boolean.

This seems to stop the linting completely. I thought manually overriding the rule should help, but it doesn’t:

module.exports = {
  extends: 'galex',
  rules: {
    '@typescript-eslint/ban-ts-comment': 0,
  },
};

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Eugleocommented, Sep 10, 2020

It didn’t! The other errors had gone away.

1reaction
Eugleocommented, Sep 9, 2020

Wow, that was fast. All works well with the latest update, thank you<. Just to be sure, when’d like to disable import/no-namespace, for example, in all files, I can simply have

module.exports = {
  extends: 'galex',
  rules: {
    'import/no-namespace': 0,
  },
};

Is that right? And the overrides are needed only when I’d like to cherrypick in which files the rule gets enforced.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[ban-ts-comment] Seemingly valid configuration is being ...
[ban-ts-comment] Seemingly valid configuration is being flagged as invalid · Issue #2157 · typescript-eslint/typescript-eslint · GitHub.
Read more >
ban-ts-comment - TypeScript ESLint
Disallow `@ts- ` comments or require descriptions after directives. ... This rule lets you set which directive comments you want to allow in...
Read more >
how ignore typescript errors with @ts-ignore? - Stack Overflow
EDIT: If you are using @typescript-eslint/eslint-plugin version 2.18 or higher, the rule is called ban-ts-comment and you need to add
Read more >
How to Use @TypeScript-ESLint/Ban-TS-Comment
If you are using TypeScript and TypeScript-ESLint in a team setting, you can ban TypeScript comments by adding the @typescript-eslint/ban-ts- ...
Read more >
Rules - ESLint - Pluggable JavaScript Linter
Some problems reported by this rule are automatically fixable by the --fix command ... Disallow invalid regular expression strings in `RegExp` constructors.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found