Skip to content

Commit 6450a11

Browse files
committed
feat(rules): add tslint-eslint-rules/no-extra-semi
1 parent d7f3a97 commit 6450a11

File tree

4 files changed

+33
-0
lines changed

4 files changed

+33
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ "semi": false }
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`should affect error message after formatting 1`] = `
4+
"
5+
<<<<<< before
6+
no error
7+
8+
======
9+
ERROR: (no-extra-semi) /src/tslint-eslint-rules/no-extra-semi/test.ts[1, 1]: unnecessary semicolon
10+
11+
>>>>>> after
12+
"
13+
`;
14+
15+
exports[`should be pretty after formatting 1`] = `
16+
"
17+
<<<<<< before
18+
({ x }) = foo()
19+
20+
======
21+
;({ x } = foo())
22+
23+
>>>>>> after
24+
"
25+
`;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
({ x }) = foo()
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "../tslint.json",
3+
"rules": {
4+
"no-extra-semi": true
5+
}
6+
}

0 commit comments

Comments
 (0)