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

@typescript-eslint/naming-convention reports a false positive on imports #203

Open
jesse-mm opened this issue Jan 8, 2024 · 1 comment
Assignees

Comments

@jesse-mm
Copy link
Collaborator

jesse-mm commented Jan 8, 2024

I've upgraded to the latest version of @medimonks/eslint packages. Now on imports it's throwing an error on the rule "@typescript-eslint/naming-convention".

For example:
import Link from 'next/link';

Is now throwing the lint error:

Error: Import name Link must match one of the following formats: strictCamelCase @typescript-eslint/naming-convention

Setting

{
  "selector": "import",
  "format": [
    "strictCamelCase",
    "PascalCase"
  ]
}

should resolve this problem.

Affected versions:

"@mediamonks/eslint-config-typescript": "^1.4.0",
"@mediamonks/eslint-config-typescript-react": "^1.3.0",
@leroykorterink
Copy link
Collaborator

leroykorterink commented Nov 8, 2024

This should be fixed in #258 (ESLint flat config setup)

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