-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(rules): add tslint-eslint-rules/no-extra-semi
- Loading branch information
Showing
4 changed files
with
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{ "semi": false } |
25 changes: 25 additions & 0 deletions
25
src/tslint-eslint-rules/no-extra-semi/__snapshots__/test.ts.snap
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,25 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`should affect error message after formatting 1`] = ` | ||
" | ||
<<<<<< before | ||
no error | ||
====== | ||
ERROR: (no-extra-semi) /src/tslint-eslint-rules/no-extra-semi/test.ts[1, 1]: unnecessary semicolon | ||
>>>>>> after | ||
" | ||
`; | ||
exports[`should be pretty after formatting 1`] = ` | ||
" | ||
<<<<<< before | ||
({ x }) = foo() | ||
====== | ||
;({ x } = foo()) | ||
>>>>>> after | ||
" | ||
`; |
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 @@ | ||
({ x }) = foo() |
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,6 @@ | ||
{ | ||
"extends": "../tslint.json", | ||
"rules": { | ||
"no-extra-semi": true | ||
} | ||
} |