Skip to content

[naming-convention] Add the ability to lint imports #2106

Closed
@vkrol

Description

@vkrol

Hello!

It's not a bug report, it's a feature request.

Repro

{
  "rules": {
    "@typescript-eslint/naming-convention": [
      "error",
      { "selector": "variableLike", "format": ["camelCase"] }
    ]
  }
}
import * as Foo from "./foo";

Expected Result
The error.

Actual Result
No error.

Additional Info
N/A.

Versions

package version
@typescript-eslint/eslint-plugin 3.0.0
@typescript-eslint/parser 3.0.0
TypeScript 3.9.3
ESLint 7.1.0
node X.Y.Z
npm X.Y.Z

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepting prsGo ahead, send a pull request that resolves this issueenhancement: plugin rule optionNew rule option for an existing eslint-plugin rulepackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions