Skip to content

Commit 26cc41c

Browse files
committedNov 13, 2018
feat(rules): add tslint-react/jsx-space-before-trailing-slash
1 parent 9ffef95 commit 26cc41c

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed
 
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+
ERROR: (jsx-space-before-trailing-slash) /src/tslint-react/jsx-space-before-trailing-slash/test.tsx[1, 1]: Self-closing JSX elements must have a space before the '/>' part
7+
8+
======
9+
no error
10+
11+
>>>>>> after
12+
"
13+
`;
14+
15+
exports[`should be pretty after formatting 1`] = `
16+
"
17+
<<<<<< before
18+
<meta/>
19+
20+
======
21+
<meta />;
22+
23+
>>>>>> after
24+
"
25+
`;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<meta/>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "../tslint.json",
3+
"rules": {
4+
"jsx-space-before-trailing-slash": true
5+
}
6+
}

0 commit comments

Comments
 (0)
Please sign in to comment.