Skip to content

Commit

Permalink
4.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
SrBrahma committed May 26, 2024
1 parent 0fc6e79 commit d958afb
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 17 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@
> Changes to the `js` flavor are also applied to all the other flavors.
> Changes to the `ts` flavor are also applied to `react` and `react-native` flavors.
## 4.5.0

- Added `"react-refresh/only-export-components"`
- Upgraded deps

## 4.4.0

- Upgrade deps
- Upgraded deps

## 4.3.0

Expand Down
Binary file removed bun.lockb
Binary file not shown.
Binary file removed bun.png
Binary file not shown.
2 changes: 2 additions & 0 deletions bunfig.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[install.lockfile]
save = false
30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-config-gev",
"version": "4.4.0",
"version": "4.5.0",
"description": "Curated ESLint configs for TS, JS, Next, React, and React Native projects",
"author": "SrBrahma",
"main": "index.js",
Expand All @@ -9,7 +9,7 @@
"format": "biome check --apply-unsafe . && eslint --fix . package.json",
"format:check": "biome check . && eslint . package.json",
"pre-commit": "bun format && bun start && git add -A",
"prepare": "husky",
"prepare": "bunx husky",
"start": "bun scripts/makeTsExtensions.ts",
"test:watch": "bun test --watch",
"watch": "bun --watch scripts/makeTsExtensions.ts"
Expand All @@ -32,29 +32,29 @@
],
"dependencies": {
"@next/eslint-plugin-next": "^14.2.3",
"@rushstack/eslint-patch": "^1.10.2",
"@stylistic/eslint-plugin": "1.7.2",
"@typescript-eslint/eslint-plugin": "7.7.1",
"@typescript-eslint/parser": "7.7.1",
"@rushstack/eslint-patch": "^1.10.3",
"@stylistic/eslint-plugin": "2.1.0",
"@typescript-eslint/eslint-plugin": "7.10.0",
"@typescript-eslint/parser": "7.10.0",
"citty": "0.1.6",
"eslint": "8.56.0",
"eslint-config-biome": "^1.5.3",
"eslint-plugin-jsdoc": "48.2.3",
"eslint-config-biome": "^1.7.3",
"eslint-plugin-jsdoc": "48.2.6",
"eslint-plugin-json-files": "^4.2.0",
"eslint-plugin-no-autofix": "1.2.3",
"eslint-plugin-no-autofix": "2.0.0",
"eslint-plugin-no-relative-import-paths": "1.5.4",
"eslint-plugin-prefer-arrow-functions": "3.3.2",
"eslint-plugin-react": "7.34.1",
"eslint-plugin-react-hooks": "4.6.0",
"eslint-plugin-react-hooks": "4.6.2",
"eslint-plugin-react-native": "4.1.0",
"eslint-plugin-require-extensions": "0.1.3",
"eslint-plugin-unused-imports": "3.1.0"
"eslint-plugin-unused-imports": "4.0.0"
},
"devDependencies": {
"@biomejs/biome": "^1.7.1",
"@biomejs/biome": "^1.7.3",
"@sindresorhus/tsconfig": "5.0.0",
"@types/bun": "^1.1.0",
"husky": "9.0.11",
"ms": "^2.1.3"
"@types/bun": "^1.1.3",
"eslint-plugin-react-refresh": "^0.4.7",
"husky": "9.0.11"
}
}
9 changes: 8 additions & 1 deletion react.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = {
version: "detect", // To remove the warning.
},
},
plugins: ["react"],
plugins: ["react", "react-refresh"],
extends: [
"plugin:react/recommended",
"plugin:react-hooks/recommended",
Expand Down Expand Up @@ -57,5 +57,12 @@ 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 d958afb

Please sign in to comment.