Skip to content

Commit

Permalink
chore: change noBarrelFile language to js from ts (#4169)
Browse files Browse the repository at this point in the history
Co-authored-by: Emanuele Stoppa <[email protected]>
  • Loading branch information
dwaneivan and ematipico authored Oct 3, 2024
1 parent 6b62642 commit 0396fa3
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ declare_lint_rule! {
///
/// ### Invalid
///
/// ```ts,expect_diagnostic
/// ```js,expect_diagnostic
/// export * from "foo";
/// export * from "bar";
/// ```
///
/// ```ts,expect_diagnostic
/// ```js,expect_diagnostic
/// export { foo } from "foo";
/// export { bar } from "bar";
/// ```
///
/// ```ts,expect_diagnostic
/// ```js,expect_diagnostic
/// export { default as module1 } from "./module1";
/// ```
///
Expand All @@ -44,7 +44,7 @@ declare_lint_rule! {
pub NoBarrelFile {
version: "1.6.0",
name: "noBarrelFile",
language: "ts",
language: "js",
recommended: false,
sources: &[RuleSource::EslintBarrelFiles("avoid-barrel-files")],
source_kind: RuleSourceKind::Inspired,
Expand Down

0 comments on commit 0396fa3

Please sign in to comment.