Skip to content

Commit

Permalink
feat(rules): add tslint-eslint-rules/no-extra-semi
Browse files Browse the repository at this point in the history
  • Loading branch information
ikatyang committed Aug 20, 2018
1 parent d7f3a97 commit 6450a11
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 6450a11

Please sign in to comment.