Skip to content

linter: false positive in eslint-plugin-jest(valid-title) rule #8531

@baseballyama

Description

@baseballyama

What version of Oxlint are you using?

0.15.6

What command did you run?

oxlint -c=../../../.oxlintrc.json

What does your .oxlint.json config file look like?

{
  "$schema": "./node_modules/oxlint/configuration_schema.json",
  "categories": {
    "correctness": "error"
  },
  "plugins": ["typescript", "unicorn", "oxc", "security", "jsdoc", "n", "vitest"],
  "env": {},
  "settings": {},
  "rules": {
    "eqeqeq": ["error", "always", { "null": "ignore" }],
    "vitest/expect-expect": "off",
    "vitest/no-disabled-tests": "off",
    "vitest/no-conditional-expect": "off",
    "jest/no-standalone-expect": "off",
    "jest/no-export": "off",
    "no-document-cookie": "off",
    "no-unused-vars": "off"
  },
  "overrides": [
    {
      "files": ["*.svelte"],
      "rules": {
        "no-unused-vars": "off"
      }
    }
  ]
}

What happened?

The type of testCase is string, but this error occurred.
I think we need to implement the configs provided by eslint-plugin-vitest.
https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-title.md

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-linterArea - LinterC-bugCategory - Bug

    Type

    No type

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions