summaryrefslogtreecommitdiffstats
path: root/.eslintrc.js
diff options
context:
space:
mode:
Diffstat (limited to '.eslintrc.js')
-rw-r--r--.eslintrc.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
index 55c5ade..1c83704 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -1,6 +1,10 @@
module.exports = {
parser: '@typescript-eslint/parser',
+ plugins: [
+ 'react-hooks',
+ ],
extends: [
+ 'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
'prettier/@typescript-eslint',
'plugin:prettier/recommended',
@@ -8,8 +12,19 @@ module.exports = {
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
+ ecmaFeatures: {
+ jsx: true,
+ },
},
rules: {
+ 'react/prop-types': [0],
+ 'react-hooks/rules-of-hooks': 'error',
+ 'react-hooks/exhaustive-deps': 'warn',
'prettier/prettier': 'warn',
},
+ settings: {
+ react: {
+ version: 'detect',
+ },
+ },
};