Skip to content

Commit

Permalink
chore(project): add eslint-plugin-react-refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
joshblack committed Jan 30, 2025
1 parent 124f88a commit 78a12d2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ module.exports = {
'plugin:ssr-friendly/recommended',
'plugin:clsx/recommended',
],
plugins: ['react-refresh'],
settings: {
react: {
version: 'detect',
Expand Down Expand Up @@ -90,6 +91,7 @@ module.exports = {
'github/role-supports-aria-props': 'off',
'no-restricted-syntax': 'off',
'primer-react/a11y-use-next-tooltip': 'off',
'react-refresh/only-export-components': 'error',
},
overrides: [
// rules which apply only to JS
Expand Down
3 changes: 2 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
"eslint-plugin-primer-react": "5.4.0",
"eslint-plugin-react": "7.32.2",
"eslint-plugin-react-hooks": "4.6.0",
"eslint-plugin-react-refresh": "^0.4.18",
"eslint-plugin-ssr-friendly": "1.3.0",
"eslint-plugin-storybook": "0.11.2",
"eslint-plugin-testing-library": "6.0.2",
Expand Down

0 comments on commit 78a12d2

Please sign in to comment.