Skip to content

Commit

Permalink
4.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ftzi committed Nov 28, 2024
1 parent 4569c68 commit 8d90b15
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-config-gev",
"version": "4.6.1",
"version": "4.6.2",
"description": "Curated ESLint configs for TS, JS, Next, React, and React Native projects",
"author": "SrBrahma",
"main": "index.js",
Expand Down
6 changes: 6 additions & 0 deletions react.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,11 @@ module.exports = {
],
rules: {
...require("./shared-react.js"),
/** https://www.npmjs.com/package/eslint-plugin-react-refresh */
"react-refresh/only-export-components": [
"warn",
// Only Vite supports this.
{ allowConstantExport: true },
],
},
}
7 changes: 0 additions & 7 deletions shared-react.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,4 @@ module.exports = {
* https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-fragments.md
*/
"react/jsx-fragments": "warn",

/** https://www.npmjs.com/package/eslint-plugin-react-refresh */
"react-refresh/only-export-components": [
"warn",
// Only Vite supports this.
{ allowConstantExport: true },
],
}

0 comments on commit 8d90b15

Please sign in to comment.