Skip to content
This repository was archived by the owner on Jul 15, 2023. It is now read-only.
This repository was archived by the owner on Jul 15, 2023. It is now read-only.

Add case sensitivity to 'import-name' rule #830

Closed
@djomaa

Description

@djomaa

Rule improvement suggestion

This rule improvement is specific for my development style, but it would not affect general style.

Why

Let's say, there is a rule for file naming using dots.case and a rule to use export default only for constructors. So importing variable should be named in PascalCase. Current import-name rule would not allow this.

Suggestion

I suggest adding an option to set the preferred string case with camelCase by default.

Use case

// ./src/master.class.ts
export default class Master {}
// ./src/another.file.ts
import Master from './master.class';
class Slave extends Master {} 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: In DiscussionPlease continue discussing the proposed change before sending a pull request.Type: Rule FeatureAdding a feature to an existing rule.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions