@@ -7,8 +7,6 @@ const globals = require("globals");
77const tsPlugin = require ( "@typescript-eslint/eslint-plugin" ) ;
88const tsParser = require ( "@typescript-eslint/parser" ) ;
99const prettierConfig = require ( "eslint-config-prettier" ) ;
10- const reactPlugin = require ( "eslint-plugin-react" ) ;
11- const hooksPlugin = require ( "eslint-plugin-react-hooks" ) ;
1210
1311module . exports = [
1412 {
@@ -29,8 +27,6 @@ module.exports = [
2927 import : importsPlugin ,
3028 "unused-imports" : unusedImportsPlugin ,
3129 "simple-import-sort" : sortImportsPlugin ,
32- react : reactPlugin ,
33- "react-hooks" : hooksPlugin ,
3430 } ,
3531 languageOptions : {
3632 globals : {
@@ -62,38 +58,6 @@ module.exports = [
6258 rules : {
6359 ...jsPlugin . configs . recommended . rules ,
6460 ...importsPlugin . configs . recommended . rules ,
65- ...reactPlugin . configs . recommended . rules ,
66- ...hooksPlugin . configs . recommended . rules ,
67-
68- "react/jsx-key" : [
69- "error" ,
70- {
71- checkFragmentShorthand : true ,
72- } ,
73- ] ,
74- "react/self-closing-comp" : [ "error" ] ,
75- "react/prefer-es6-class" : [ "error" ] ,
76- "react/prefer-stateless-function" : [ "warn" ] ,
77- "react/no-did-mount-set-state" : [ "error" ] ,
78- "react/no-did-update-set-state" : [ "error" ] ,
79- "react/jsx-filename-extension" : [
80- "warn" ,
81- {
82- extensions : [ ".mdx" , ".jsx" , ".tsx" ] ,
83- } ,
84- ] ,
85- "react/react-in-jsx-scope" : [ "off" ] ,
86- "react/jsx-sort-props" : [
87- "error" ,
88- {
89- callbacksLast : true ,
90- shorthandFirst : false ,
91- shorthandLast : true ,
92- ignoreCase : true ,
93- noSortAlphabetically : false ,
94- reservedFirst : true ,
95- } ,
96- ] ,
9761
9862 // Imports
9963 "unused-imports/no-unused-vars" : [
0 commit comments