Ignore unused React when using JSX

This commit is contained in:
Luke Barnard 2017-11-10 16:11:59 +00:00
parent ceda5939f9
commit 1c82df216e

View file

@ -33,6 +33,8 @@ module.exports = {
// This just uses the react plugin to help eslint known when // This just uses the react plugin to help eslint known when
// variables have been used in JSX // variables have been used in JSX
"react/jsx-uses-vars": "error", "react/jsx-uses-vars": "error",
// Don't mark React as unused if we're using JSX
"react/jsx-uses-react": "error",
// bind or arrow function in props causes performance issues // bind or arrow function in props causes performance issues
"react/jsx-no-bind": ["error", { "react/jsx-no-bind": ["error", {