-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update: Add disallowTemplateShorthand option in no-implicit-coercion (#…
…13579) * Update: Add templateString option in no-implicit-coercion (fixes #12866) This adds the `templateString` option to `no-implicit-coercion`. This makes the rule report the following code: ```js `${foo}` ``` For backwards compatibility, this was added as a separate option instead of as default behaviour. * Fix no-implicit-coercion templateString examples * Skip tagged template strings in no-implicit-coercion * Add missing tests for no-implicit-coercion * Used cooked template string values * Add missing documentation for no-implicit-coercion Note that the `templateString` option isn’t affected by the `string` option. * Add missing tests for no-implicit-coercion templateString * Rename templateString to disallowTemplateString * Fix typo in no-implicit-coercion docs * Add tagged template string example for no-implicit-coercion * Update docs/rules/no-implicit-coercion.md Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com> Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>
- Loading branch information
1 parent
71a80e3
commit f06ecdf
Showing
3 changed files
with
118 additions
and
4 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