Skip to content

Commit

Permalink
fix(eslint-config-airlight-react): update dependencies for security a…
Browse files Browse the repository at this point in the history
…nd bug-fixes

feat(eslint-config-airlight-react): add `react-refresh` for React
  • Loading branch information
dalisoft committed Jan 2, 2023
1 parent 85fdec6 commit 99af64c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
5 changes: 3 additions & 2 deletions packages/eslint-config-react/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ config.extends.splice(
);

// Plugins
config.plugins.splice(3, 0, 'jest');
config.plugins.splice(3, 0, 'jest', 'react-refresh');

// Add env
config.env = {
Expand Down Expand Up @@ -54,7 +54,8 @@ config.rules = {
'react/jsx-pascal-case': ['error'],
'react/jsx-no-useless-fragment': ['error'],
'react/no-deprecated': ['error'],
'react/jsx-filename-extension': ['error', { extensions: ['.jsx', '.tsx'] }]
'react/jsx-filename-extension': ['error', { extensions: ['.jsx', '.tsx'] }],
'react-refresh/only-export-components': 'warn'
};

// There rules can't be pushed
Expand Down
11 changes: 6 additions & 5 deletions packages/eslint-config-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,15 @@
"homepage": "https://github.com/dalisoft/airlight#readme",
"dependencies": {
"eslint-config-airlight-base": "*",
"eslint-plugin-jest": "^27.0.1",
"eslint-plugin-jest": "^27.2.0",
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-react": "^7.30.1",
"eslint-plugin-react-hooks": "^4.6.0"
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.3.2"
},
"peerDependencies": {
"eslint": "^8.23.0",
"prettier": "^2.7.1",
"typescript": "^4.7.4"
"eslint": "^8.31.0",
"prettier": "^2.8.1",
"typescript": "^4.9.4"
}
}

0 comments on commit 99af64c

Please sign in to comment.