Skip to content

Commit 9cf2332

Browse files
docs: node protocol rule reference (#8328)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent 1da899b commit 9cf2332

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

.changeset/small-shoes-know.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@biomejs/biome": patch
3+
---
4+
5+
Corrected rule source reference. `biome migrate eslint` should do a bit better detecting rules in your eslint configurations.

crates/biome_cli/src/execute/migrate/eslint_any_rule_to_biome.rs

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/biome_js_analyze/src/lint/style/use_nodejs_import_protocol.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ declare_lint_rule! {
5454
version: "1.5.0",
5555
name: "useNodejsImportProtocol",
5656
language: "js",
57-
sources: &[RuleSource::EslintUnicorn("prefer-node-protocol").same()],
57+
sources: &[RuleSource::EslintUnicorn("prefer-node-protocol").same(), RuleSource::EslintImport("enforce-node-protocol-usage").same()],
5858
recommended: true,
5959
severity: Severity::Information,
6060
fix_kind: FixKind::Unsafe,

0 commit comments

Comments
 (0)