Skip to content
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.

Latest commit

 

History

History
43 lines (29 loc) · 926 Bytes

README_en.md

File metadata and controls

43 lines (29 loc) · 926 Bytes

eslint-plugin-vitest-sample

Overview

System Requirements

  • Node.js - 18.x
  • Yarn - 1.22.x

Library

  • Vitest - 0.34.x
  • ESLint - 8.47.x
  • eslint-plugin-vitest - 0.2.x

Usage

# package install
yarn

# eslint run
yarn lint

Execution result

$ eslint ./test --ext .js

./test/sample.test.js
  11:3  error  Test is used multiple times in the same describe block  vitest/no-identical-title
  16:3  error  Prefer using it instead of test within describe         vitest/consistent-test-it
  22:1  error  All test cases must be wrapped in a describe block      vitest/require-top-level-describe

✖ 3 problems (3 errors, 0 warnings)
  1 error and 0 warnings potentially fixable with the `--fix` option.

error Command failed with exit code 1.