Skip to content

Commit

Permalink
Set: forceConsistentCasingInFileNames rule to true (tsconfig) (#4220)
Browse files Browse the repository at this point in the history
Set: forceConsistentCasingInFileNames rule to true (tsconfig)

This is recommended by Typescript:
https://typescriptlang.org/tsconfig/#forceConsistentCasingInFileNames

I've had this option set locally for and lint and test scripts complete without issues

I discovered this by using WebHint VS Code extension which also recommend using it. https://webhint.io/docs/user-guide/hints/hint-typescript-config/consistent-casing

Co-authored-by: Harel M <harel.mazor@gmail.com>
  • Loading branch information
coliff and HarelM committed Jun 3, 2024
1 parent 768f737 commit 9e2f2c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"forceConsistentCasingInFileNames": true,
"allowJs": true,
"allowSyntheticDefaultImports": true,
"checkJs": true,
Expand Down

0 comments on commit 9e2f2c4

Please sign in to comment.