This repository has been archived by the owner on Jul 15, 2023. It is now read-only.
[Feature Request] import-name
support snake_case file names
#424
Labels
Difficulty: Easy
Someone with little to no experience in TSLint should be able to send a pull request for this issue.
Good First Issue 🙌
Howdy, neighbor!
Status: Accepting PRs
Type: Rule Feature
Adding a feature to an existing rule.
Milestone
https://github.com/Microsoft/tslint-microsoft-contrib/blob/d970a8a80134467cefd78f01ed49772506e9c21e/src/importNameRule.ts#L102
The current code allows periods,
.
, and hyphens,-
, in file name imports and converts them to camelCase. Is it possible to allow underscores,_
, as well?I know underscores for file names isn't as common in javascript/typescript but I see it used sometimes. Currently, tslint would suggest
import snake_case from 'snake_case';
and I think snake_case for variable naming is less common.The text was updated successfully, but these errors were encountered: