-
-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Catch and format SyntaxErrors as eslint violations (#141)
* Bump development prettier version to 1.15.3 * Catch and format SyntaxErrors as eslint violations If Prettier can't format a file due to not being able to parse the given content it throws a SyntaxError. If that happens then announce the error as an ESLint rule violation instead of crashing.
- Loading branch information
Showing
5 changed files
with
68 additions
and
6 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
CODE: | ||
<template> | ||
<div> | ||
</template> | ||
<script> | ||
a(); | ||
</script> | ||
|
||
OUTPUT: | ||
<template> | ||
<div> | ||
</template> | ||
<script> | ||
a(); | ||
</script> | ||
|
||
OPTIONS: | ||
[] | ||
|
||
ERRORS: | ||
[ | ||
{ | ||
message: 'Parsing error: Unexpected closing tag "template". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags', | ||
line: 3, column: 2 | ||
}, | ||
] |
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