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

[naming-convention] Configuration invalid (unexpected error) when using config all #1472

Closed
fernandopasik opened this issue Jan 19, 2020 · 3 comments
Assignees
Labels
bug Something isn't working package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin

Comments

@fernandopasik
Copy link

When using the config all the config applied for this rule is

"@typescript-eslint/naming-convention": "error",

https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/src/configs/all.json#L24

Repro

{
  "extends": [
    "plugin:@typescript-eslint/all"
  ]
}

Expected Result

Run normally.

Actual Result

Throws an unexpected error

Error: .eslintrc.json » plugin:@typescript-eslint/all:
        Configuration for rule "@typescript-eslint/naming-convention" is invalid:
        Value [] should NOT have fewer than 1 items.

Versions

package version
@typescript-eslint/eslint-plugin 2.16.0
@typescript-eslint/parser 2.16.0
TypeScript 3.7.5
ESLint 6.8.0
node 12.13.1
@fernandopasik fernandopasik added package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin triage Waiting for maintainers to take a look labels Jan 19, 2020
@fernandopasik fernandopasik changed the title [naming-convention] Error when using config all [naming-convention] Configuration invalid (unexpected error) when using config all Jan 19, 2020
@fernandopasik
Copy link
Author

Trying to disable the rule in .eslintrc with

@typescript-eslint/naming-convention": "off"

still does not make the error go away

@bradzacher
Copy link
Member

Fixed in #1455

@fernandopasik
Copy link
Author

Thanks @bradzacher

@bradzacher bradzacher added bug Something isn't working and removed triage Waiting for maintainers to take a look labels Jan 24, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin
Projects
None yet
Development

No branches or pull requests

2 participants