This repository has been archived by the owner on Jul 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add feature to import-name rule ignoring node_modules and etc ( #541 ) (
#569) * Make more arguments can be passed to options by using index flag and make more state for the later * Extract checking replacements logic to function for more checking for the later * Extract ignoredList from third argument * Make "isImportNameValid()" return true when ignoredList has moduleName that is currently in a validation process Add "es7" to "lib" at tsconfig.json for using Array.includes() with string[] type * Extra config from fourth argument * Ignore if isExternalLibraryImport flag is true from runtime node object * Add Tests that can be tested with "grunt all" - Need Help I want to write a test about ignoring node_moduels feature, but "node" object is only given at runtime. I don't know how to write a test of it. * for.. of doesn't support Map at es5 target. It just changes to for loop and silently doesn't go into for loop. I changed it to forEach. Now It's working. * 1. Remove "es7" from tsconfig 2. Without es7 support, Array.includes doesnt work. I changed it using filter function. (This is the reason why I added es7 support) I think Array.includes() is not that 'absolutely needed' I just removed it. * comment added? * comment for interfaces * Add optionExamples * Change optionsExamples --> naming of previous one can be confusing.
- Loading branch information
Showing
3 changed files
with
183 additions
and
18 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
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 |
---|---|---|
|
@@ -28,4 +28,4 @@ | |
"include": [ | ||
"src" | ||
] | ||
} | ||
} |