mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
eslint: add react-refresh rule
This commit is contained in:
2 files changed
+3
No files matched your search
@@ -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": {
|
||||
|
||||
@@ -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'] }],
|
||||
Reference in new issue
Block a user