Skip to content
This repository was archived by the owner on Mar 7, 2019. It is now read-only.

Commit ca112ef

Browse files
author
Petr Hanák
committed
Add react/no-unescaped-entities
1 parent 2bff63a commit ca112ef

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

environments/react/optional.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,10 @@ module.exports = {
3131
// babel-plugin-transform-react-remove-prop-types to remove propTypes from their components in
3232
// production builds, to do so safely
3333
'react/forbid-foreign-prop-types': 'warn',
34+
35+
// This rule prevents characters that you may have meant as JSX escape characters from being
36+
// accidentally injected as a text node in JSX statements.
37+
// Also breaks syntax highlighting in github pull requests.
38+
'react/no-unescaped-entities': 'warn',
3439
},
3540
}

0 commit comments

Comments
 (0)