diff --git a/.eslintrc.js b/.eslintrc.js
index 56eab4c..697fe96 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -3,7 +3,7 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
- plugins: ['@typescript-eslint'],
+ plugins: ['@typescript-eslint', 'react'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
@@ -11,5 +11,10 @@ module.exports = {
'plugin:prettier/recommended',
],
+ rules: {
+ 'react/jsx-uses-react': 'error',
+ 'react/jsx-uses-vars': 'error',
+ },
+
ignorePatterns: ['demos/', 'dist/', 'coverage/', 'node_modules/'],
};
diff --git a/demos/todo-list/src/App.recoil-readwrite.jsx b/demos/todo-list/src/App.recoil-readwrite.jsx
index e72aa9b..8a8a7b2 100644
--- a/demos/todo-list/src/App.recoil-readwrite.jsx
+++ b/demos/todo-list/src/App.recoil-readwrite.jsx
@@ -7,7 +7,7 @@ import VisibleTodoList from './components-recoil-readwrite/VisibleTodoList';
const RecoilReadWriteApp = () => (