Skip to content

Commit

Permalink
feat(rules): add tslint-react/jsx-space-before-trailing-slash
Browse files Browse the repository at this point in the history
  • Loading branch information
ikatyang committed Nov 13, 2018
1 parent 9ffef95 commit 26cc41c
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
@@ -0,0 +1,25 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`should affect error message after formatting 1`] = `
"
<<<<<< before
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
======
no error
>>>>>> after
"
`;
exports[`should be pretty after formatting 1`] = `
"
<<<<<< before
<meta/>
======
<meta />;
>>>>>> after
"
`;
1 change: 1 addition & 0 deletions src/tslint-react/jsx-space-before-trailing-slash/test.tsx
@@ -0,0 +1 @@
<meta/>
6 changes: 6 additions & 0 deletions src/tslint-react/jsx-space-before-trailing-slash/tslint.json
@@ -0,0 +1,6 @@
{
"extends": "../tslint.json",
"rules": {
"jsx-space-before-trailing-slash": true
}
}

0 comments on commit 26cc41c

Please sign in to comment.