This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 889
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Exclusion Names for Rule file-name-casing (#4204)
* Add Exclusion Names for Rule file-name-casing - Add exclusion option for one or more files - Add test files * Rename method for checking file exemption * Fix lint errors * address review comments * Post-merge: remove some now unnecessary tests * Ah, corrected new test cases to fail as needed * Lint complaint
- Loading branch information
1 parent
5d135e8
commit 9d6d49a
Showing
4 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
~nil [File name must be PascalCase] |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"rules": { | ||
"file-name-casing": [true, { | ||
".ts": "ignore", | ||
".tsx": "pascal-case" | ||
}] | ||
} | ||
} |