Skip to content

Commit

Permalink
Merge pull request #180 from alexjoverm/feat/tslint-eslint-rules/no-e…
Browse files Browse the repository at this point in the history
…xtra-semi

feat(rules): add tslint-eslint-rules/no-extra-semi
  • Loading branch information
alexjoverm authored Aug 20, 2018
2 parents d7f3a97 + 6450a11 commit bb3c479
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/tslint-eslint-rules/no-extra-semi/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "semi": false }
25 changes: 25 additions & 0 deletions src/tslint-eslint-rules/no-extra-semi/__snapshots__/test.ts.snap
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
"
`;
1 change: 1 addition & 0 deletions src/tslint-eslint-rules/no-extra-semi/test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
({ x }) = foo()
6 changes: 6 additions & 0 deletions src/tslint-eslint-rules/no-extra-semi/tslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "../tslint.json",
"rules": {
"no-extra-semi": true
}
}

0 comments on commit bb3c479

Please sign in to comment.