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
Description
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 constructor
s. 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 {}