Skip to content

Commit 0475a31

Browse files
committed
docs: update changelog
1 parent 2865a72 commit 0475a31

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
### 🪄 Improvements
44

55
- refactor: remove `hooks-extra/prefer-use-state-lazy-initialization` from recommended presets by @Rel1cx in <https://github.com/Rel1cx/eslint-react/pull/1001>
6+
> Based on feedback of this rule, the current implementation produces more false positives than expected, so to ensure the overall quality of the rules in the recommended presets we provide, I'm removing it from the presets for now, and should add it back after we implement a better heuristic for deciding which function calls should be allowed.
67
78
**Full Changelog**: <https://github.com/Rel1cx/eslint-react/compare/v1.36.3...v1.37.0>
89

apps/website/content/docs/changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ title: Changelog
77
### 🪄 Improvements
88

99
- refactor: remove `hooks-extra/prefer-use-state-lazy-initialization` from recommended presets by @Rel1cx in <https://github.com/Rel1cx/eslint-react/pull/1001>
10+
> Based on feedback of this rule, the current implementation produces more false positives than expected, so to ensure the overall quality of the rules in the recommended presets we provide, I'm removing it from the presets for now, and should add it back after we implement a better heuristic for deciding which function calls should be allowed.
1011
1112
**Full Changelog**: <https://github.com/Rel1cx/eslint-react/compare/v1.36.3...v1.37.0>
1213

eslint.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export default tseslint.config(
6767
},
6868
},
6969
plugins: {
70-
["local"]: pluginLocal,
70+
local: pluginLocal,
7171
},
7272
rules: {
7373
// Part: local rules

scripts/update-version.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ import { glob } from "./lib/glob";
77
import { ignores } from "./lib/ignores";
88
import { version } from "./lib/version";
99

10-
const GLOB_PACKAGE_JSON = ["package.json", "packages/*/package.json", "packages/*/*/package.json"];
10+
const GLOB_PACKAGE_JSON = [
11+
"package.json",
12+
"packages/*/package.json",
13+
"packages/*/*/package.json",
14+
];
1115

1216
async function update(path: string) {
1317
const packageJson = JSON.parse(fs.readFileSync(path, "utf8"));
@@ -26,7 +30,7 @@ async function update(path: string) {
2630
...packageJson,
2731
version: newVersion,
2832
};
29-
fs.writeFileSync(path, JSON.stringify(packageJsonUpdated, null, 2) + "\n");
33+
fs.writeFileSync(path, `${JSON.stringify(packageJsonUpdated, null, 2)}\n`);
3034
console.info(ansis.green(`Updated ${path} to version ${packageJsonUpdated.version}`));
3135
}
3236

0 commit comments

Comments
 (0)