Skip to content

linter: vitest/valid-title does not recognize String.raw #22268

@Mister-Hope

Description

@Mister-Hope

What version of Oxlint are you using?

latest

What command did you run?

No response

What does your .oxlintrc.json (or oxlint.config.ts) config file look like?

No response

What happened?

it(String.raw`should handle multiple '\'`, () => {
  expect(markdownIt.render(String.raw`~foo\\\\\ bar~`)).toBe("<p><sub>foo\\\\ bar</sub></p>\n");
  expect(markdownIt.render(String.raw`~foo\\\\ bar~`)).toBe("<p>~foo\\\\ bar~</p>\n");
});
Image

I should prefer String.raw in my tests as it greatly increase readablilty with \

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Priority

    None yet

    Effort

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions