eslint: add react-refresh rule

This commit is contained in:
undefined committed 2025-02-21 05:47:01 +08:00
1 parent 4931ad43da
commit ca458dae04
2 files changed
+3

No files matched your search

+1
View File
@@ -14,6 +14,7 @@
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-react": "^7.37.4",
"eslint-plugin-react-hooks": "^5.1.0",
"eslint-plugin-react-refresh": "^0.4.19",
"eslint-plugin-simple-import-sort": "^12.1.1"
},
"peerDependencies": {
+2
View File
@@ -3,6 +3,7 @@ extends:
- airbnb/hooks
plugins:
- react
- react-refresh
- jsx-a11y
rules:
react-hooks/exhaustive-deps: 0
@@ -24,4 +25,5 @@ rules:
jsx-a11y/anchor-is-valid: 0
jsx-a11y/click-events-have-key-events: 0
jsx-a11y/label-has-associated-control: 0
react-refresh/only-export-components: ['warn', { allowConstantExport: true }]
# 'react/no-unknown-property': ['error', { ignore: ['key'] }],