Installation
# by pnpm
pnpm i -D eslint-plugin-vitest-globals
# by npm
npm install -D eslint-plugin-vitest-globals
Usage
- Simply include eslint-plugin-vitest-globals into your eslint configuration file:
{
"extends": ["plugin:vitest-globals/recommended"],
"env": {
"vitest-globals/env": true
}
}
- or if you want to use it in override mode:
{
"extends": ["plugin:vitest-globals/recommended"],
"overrides": [
{
"files": ["**/__tests__/*.{j,t}s?(x)", "**/*.spec.{j,t}s?(x)"],
"env": {
"vitest-globals/env": true
}
}
]
}
Support & Issues
Please open an issue here.
License
MIT