Missing tslint-react rule: jsx-space-before-trailing-slash
See original GitHub issueMissing 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:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The rule equivalent is https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-space-before-closing.md
From TSLint:
From ESLint:
Seems to be only for
beforeSelfClosing
only (“always” in this case), as the originalTSLint only checks for/>
tag.