-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(npm-tools): make Prettier overrides work with TS
So, I thought I had this working in: #101 (see the test plan), but when I got this into liferay-portal in: liferay-frontend/liferay-portal#415 I found it wasn't working (the `else` formatting wasn't applying). So I made the edits in this commit directly in the node_modules folder to realllllly see it working. First step: switch in the TS parser when dealing with a TS file. Second step: observe the same problem we saw (and fixed) in d8b0308 — namely, that the TS parser doesn't put `start` and `end` properties on its tokens. We can switch to `range[0]` and `range[1]` respectively, making the rule work with both parsers.
- Loading branch information
Showing
2 changed files
with
31 additions
and
15 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