Skip to content

Commit

Permalink
feat: update plugins and add react-refresh plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
targos committed Mar 10, 2023
1 parent f1f6dc2 commit 398c42b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
6 changes: 4 additions & 2 deletions base.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = {
jsx: true,
},
},
plugins: ['react', 'react-hooks'],
plugins: ['react', 'react-hooks', 'react-refresh'],
settings: {
react: {
version: 'detect',
Expand All @@ -32,8 +32,10 @@ module.exports = {
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'error',

'react-refresh/only-export-components': 'warn',

// https://github.com/jsx-eslint/eslint-plugin-react
// Last rules review: v7.31.10
// Last rules review: v7.32.2
'react/button-has-type': [
'error',
{
Expand Down
16 changes: 9 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,19 @@
},
"homepage": "https://github.com/cheminfo/eslint-config-cheminfo-react#readme",
"dependencies": {
"eslint-config-cheminfo": "^8.1.0"
"eslint-config-cheminfo": "^8.2.0"
},
"peerDependencies": {
"eslint": "^8.26.0",
"eslint-plugin-react": "^7.31.10",
"eslint-plugin-react-hooks": "^4.6.0"
"eslint": "^8.35.0",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.3.4"
},
"devDependencies": {
"eslint": "8.26.0",
"eslint-plugin-react": "7.31.10",
"eslint": "8.35.0",
"eslint-plugin-react": "7.32.2",
"eslint-plugin-react-hooks": "4.6.0",
"prettier": "^2.7.1"
"eslint-plugin-react-refresh": "0.3.4",
"prettier": "^2.8.4"
}
}

0 comments on commit 398c42b

Please sign in to comment.