Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 758 Bytes

export-name.md

File metadata and controls

27 lines (19 loc) · 758 Bytes

Pattern: Mismatched export name

Issue: -

Description

The name of the exported module must match the filename of the source file. This is case-insensitive by default but ignores file extension.

Configuration

It can be configured to be case-insensitive or to allow names matching a regex. For example, to allow names that differ only in case and an exported name like myChartOptions, then configure the rule like this:

"export-name": [true, {
    "ignore-case": true,
    "allow": ["myChartOptions"]
}]

You can also just give a list of allowed names:

"export-name": [true, "myChartOptions"]

Further Reading