Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filename-case: Ignore $ in filenames #1628

Merged
merged 3 commits into from Dec 30, 2021

Conversation

matmilbury
Copy link
Contributor

Fixes #1627

There is no test case that demonstrates why $ should not be ignored.

@@ -79,6 +79,7 @@ test({
testCase('src/foo/___foo-bar.js', 'kebabCase'),
testCase('src/foo/_FooBar.js', 'pascalCase'),
testCase('src/foo/___FooBar.js', 'pascalCase'),
testCase("src/foo/$foo.js"),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also add an invalid case with filename contains $?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$ in the filename will never cause the filename to be invalid because this character has nothing to do with casing.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sindresorhus sindresorhus changed the title Handle $ characters properly filename-case: Ignore $ in filenames Dec 30, 2021
@sindresorhus sindresorhus merged commit a43a174 into sindresorhus:main Dec 30, 2021
@matmilbury matmilbury deleted the 1627-filename-case-$ branch January 3, 2022 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

$file-name.tsx fails the kebab-case rule (filename-case)
3 participants