Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 1c82df2

Browse files
committed
Ignore unused React when using JSX
1 parent ceda593 commit 1c82df2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.eslintrc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ module.exports = {
3333
// This just uses the react plugin to help eslint known when
3434
// variables have been used in JSX
3535
"react/jsx-uses-vars": "error",
36+
// Don't mark React as unused if we're using JSX
37+
"react/jsx-uses-react": "error",
3638

3739
// bind or arrow function in props causes performance issues
3840
"react/jsx-no-bind": ["error", {

0 commit comments

Comments
 (0)