question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing tslint-react rule: jsx-space-before-trailing-slash

See original GitHub issue

Missing jsx-space-before-trailing-slash

  • tslint-to-eslint-config version: 1.0.0-beta

  • typescript-eslint version: 2.31.0

TSLint Rule Name

jsx-space-before-trailing-slash

Package Source

tslint-react: https://github.com/palantir/tslint-react (see #rules)

Equivalents for tslint-react rules generally live in eslint-plugin-react. If an ESLint rule equivalent doesn’t yet exist, this tslint-to-eslint-config issue can be closed until that equivalent is created.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

0reactions
KingDarBojacommented, Oct 4, 2020

From TSLint:

Checks that self-closing JSX elements have a space before the ‘/>’ part.

From ESLint:

https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-tag-spacing.md#beforeselfclosing

Seems to be only for beforeSelfClosing only (“always” in this case), as the originalTSLint only checks for /> tag.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix this violation of this 'react/no-unescaped-entitie' of ...
One way to fix the react/no-unescaped-entities error is by assigning ... Or you need to disable ESLint rules, for disable the ESLint rules, ......
Read more >
eslint-plugin-react | Yarn - Package Manager
List of supported rules ; jsx-curly-spacing, Enforce or disallow spaces inside of curly braces in JSX attributes and expressions ; jsx-equals-spacing, Enforce or ......
Read more >
Tslint-react NPM - npm.io
jsx-space-before-trailing-slash. Checks that self-closing JSX elements have a space before the '/>' part. Rule options: none; Includes automatic code fix.
Read more >
eslint-config-rasenplanscher - NPM Package Overview - Socket
This configuration determines whether your project uses the eslint plugins it has rules for and only activates those rules for the available ...
Read more >
eslint-plugin-react - npm
React specific linting rules for ESLint. Latest version: 7.31.11, last published: 4 days ago. Start using eslint-plugin-react in your ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found