Tslint: False Positive in file-name-casing's kebab-case option for file names with periods

Created on 28 Nov 2018  Â·  4Comments  Â·  Source: palantir/tslint

Bug Report

Angular CLI: 7.1.0
Node: 10.13.0
OS: win32 x64
Angular: 7.1.0
_TSLint version__: 5.11

  • __TypeScript version__: 3.1.6
  • __Running TSLint via__: CLI

file name is in proper case

with tslint.json configuration:
"file-name-casing": [true, "kebab-case"]

Actual behavior

reports

Subscriptions.Service.ts[1, 1]: File name must be kebab-case

but the file real name is subscriptions.service.ts

Expected behavior

pass the lint

Accepting PRs Bug good first issue

All 4 comments

Thanks for this @agustinbcu01, good find!

It looks like the file-name-casing rule's missing tests for the kebab-case option. Interesting.

I can't seem to reproduce this issue. When I try this with similarly formatted filenames, I don't get any tslint errors.

You can close them. Yesterday i did some packages updates and start working fine.

On Dec 5, 2018, at 7:19 AM, Isabelle notifications@github.com wrote:

I can't seem to reproduce this issue. When I try this with similarly formatted filenames, I don't get any tslint errors.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

Awesome, thanks!

Was this page helpful?
0 / 5 - 0 ratings