Skip to content

Commit

Permalink
Merge pull request #210 from ikatyang/feat/tslint-react/jsx-space-bef…
Browse files Browse the repository at this point in the history
…ore-trailing-slash

feat(rules): add tslint-react/jsx-space-before-trailing-slash
  • Loading branch information
alexjoverm committed Nov 13, 2018
2 parents c9b0900 + 26cc41c commit ca35700
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 ca35700

Please sign in to comment.