Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/saqqdy/eslint-plugin-vitest-globals
A extends of vitest globals for eslint
https://github.com/saqqdy/eslint-plugin-vitest-globals
environments eslint eslint-extends eslint-plugin eslint-plugin-vitest-globals vitest vitest-env vitest-eslint vitest-globals
Last synced: about 2 months ago
JSON representation
A extends of vitest globals for eslint
- Host: GitHub
- URL: https://github.com/saqqdy/eslint-plugin-vitest-globals
- Owner: saqqdy
- License: mit
- Created: 2022-03-23T09:54:27.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-03-15T03:01:30.000Z (10 months ago)
- Last Synced: 2024-03-16T03:59:27.699Z (10 months ago)
- Topics: environments, eslint, eslint-extends, eslint-plugin, eslint-plugin-vitest-globals, vitest, vitest-env, vitest-eslint, vitest-globals
- Language: TypeScript
- Homepage:
- Size: 131 KB
- Stars: 10
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# eslint-plugin-vitest-globals
A extends of vitest globals for eslint
[![NPM version][npm-image]][npm-url]
[![Codacy Badge][codacy-image]][codacy-url]
[![Known Vulnerabilities][snyk-image]][snyk-url]
[![npm download][download-image]][download-url]
[![License][license-image]][license-url][![Sonar][sonar-image]][sonar-url]
### **[Change Log](./CHANGELOG.md)**
## Installation
```bash
# by pnpm
pnpm i -D eslint-plugin-vitest-globals# by npm
npm install -D eslint-plugin-vitest-globals
```## Usage
1. Simply include eslint-plugin-vitest-globals into your eslint configuration file:
```json
{
"extends": ["plugin:vitest-globals/recommended"],
"env": {
"vitest-globals/env": true
}
}
```2. or if you want to use it in override mode:
```json
{
"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](https://github.com/saqqdy/eslint-plugin-vitest-globals/issues).
## License
[MIT](LICENSE)
[npm-image]: https://img.shields.io/npm/v/eslint-plugin-vitest-globals.svg?style=flat-square
[npm-url]: https://npmjs.org/package/eslint-plugin-vitest-globals
[codacy-image]: https://app.codacy.com/project/badge/Grade/f70d4880e4ad4f40aa970eb9ee9d0696
[codacy-url]: https://www.codacy.com/gh/saqqdy/eslint-plugin-vitest-globals/dashboard?utm_source=github.com&utm_medium=referral&utm_content=saqqdy/eslint-plugin-vitest-globals&utm_campaign=Badge_Grade
[snyk-image]: https://snyk.io/test/npm/eslint-plugin-vitest-globals/badge.svg?style=flat-square
[snyk-url]: https://snyk.io/test/npm/eslint-plugin-vitest-globals
[download-image]: https://img.shields.io/npm/dm/eslint-plugin-vitest-globals.svg?style=flat-square
[download-url]: https://npmjs.org/package/eslint-plugin-vitest-globals
[license-image]: https://img.shields.io/badge/License-MIT-blue.svg
[license-url]: LICENSE
[sonar-image]: https://sonarcloud.io/api/project_badges/quality_gate?project=saqqdy_eslint-plugin-vitest-globals
[sonar-url]: https://sonarcloud.io/dashboard?id=saqqdy_eslint-plugin-vitest-globals