Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"plugins": ["jest", "vitest"],
"rules": {
"jest/valid-title": "deny",
"vitest/valid-title": "deny",
"no-unused-vars": "off"
}
}
]
}

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,15 @@ working directory: fixtures/cli/issue_10394
`----
help: Write a meaningful title for your test

Found 1 warning and 0 errors.
! eslint-plugin-vitest(valid-title): Should not have an empty title
,-[foo.test.ts:1:10]
1 | describe("", () => {
: ^^
2 | //
`----
help: Write a meaningful title for your test

Found 2 warnings and 0 errors.
Finished in <variable>ms on 1 file with 93 rules using 1 threads.
----------
CLI result: LintSucceeded
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ working directory: fixtures/cli/overrides_with_plugin
`----
help: Write a meaningful title for your test

x eslint-plugin-vitest(valid-title): Should not have an empty title
,-[index.test.ts:1:10]
1 | describe("", () => {
: ^^
2 | // ^ jest/no-valid-title error as explicitly set in the `.test.ts` override
`----
help: Write a meaningful title for your test

! eslint-plugin-jest(expect-expect): Test has no assertions
,-[index.test.ts:4:3]
3 |
Expand All @@ -32,6 +40,15 @@ working directory: fixtures/cli/overrides_with_plugin
`----
help: Write a meaningful title for your test

x eslint-plugin-vitest(valid-title): Should not have an empty title
,-[index.test.ts:4:6]
3 |
4 | it("", () => {});
: ^^
5 | // ^ jest/no-valid-title error as explicitly set in the `.test.ts` override
`----
help: Write a meaningful title for your test

! eslint(no-unused-vars): Variable 'foo' is declared but never used. Unused variables should start with a '_'.
,-[index.ts:1:7]
1 | const foo = 123;
Expand All @@ -41,7 +58,7 @@ working directory: fixtures/cli/overrides_with_plugin
`----
help: Consider removing this declaration.

Found 2 warnings and 2 errors.
Found 2 warnings and 4 errors.
Finished in <variable>ms on 2 files with 93 rules using 1 threads.
----------
CLI result: LintFoundErrors
Expand Down
5 changes: 5 additions & 0 deletions crates/oxc_linter/src/generated/rule_runner_impls.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 25 additions & 1 deletion crates/oxc_linter/src/generated/rules_enum.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions crates/oxc_linter/src/rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -717,6 +717,7 @@ pub(crate) mod vitest {
pub mod prefer_to_be_object;
pub mod prefer_to_be_truthy;
pub mod require_local_test_context_for_concurrent_snapshots;
pub mod valid_title;
pub mod warn_todo;
}

Expand Down Expand Up @@ -749,6 +750,10 @@ pub(crate) mod vue {
pub mod valid_define_props;
}

pub(crate) mod shared {
pub mod valid_title;
}

// Re-export RuleEnum, RULES, and all rule type aliases from generated code
pub use crate::generated::rules_enum::*;

Expand Down
Loading
Loading