Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yudai-nkt/eslint-plugin-uvu
ESLint plugin for uvu
https://github.com/yudai-nkt/eslint-plugin-uvu
eslint eslint-plugin uvu
Last synced: 4 days ago
JSON representation
ESLint plugin for uvu
- Host: GitHub
- URL: https://github.com/yudai-nkt/eslint-plugin-uvu
- Owner: yudai-nkt
- License: mit
- Created: 2022-01-22T08:22:44.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-10T20:19:48.000Z (about 1 year ago)
- Last Synced: 2024-08-08T17:18:25.508Z (3 months ago)
- Topics: eslint, eslint-plugin, uvu
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/eslint-plugin-uvu
- Size: 401 KB
- Stars: 5
- Watchers: 2
- Forks: 3
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# eslint-plugin-uvu
[![test](https://github.com/yudai-nkt/eslint-plugin-uvu/actions/workflows/test.yml/badge.svg)](https://github.com/yudai-nkt/eslint-plugin-uvu/actions/workflows/test.yml)
[![version](https://img.shields.io/npm/v/eslint-plugin-uvu)](https://www.npmjs.com/package/eslint-plugin-uvu)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
[![license](https://img.shields.io/github/license/yudai-nkt/eslint-plugin-uvu)](https://github.com/yudai-nkt/eslint-plugin-uvu/blob/main/LICENSE.md)ESLint plugin for [uvu](https://www.npmjs.com/package/uvu).
## Installation
This package is available on the NPM registry.
Install `eslint-plugin-uvu` using your favortite package manager.## Usage
Enable the plugin in the `plugins` section, and configure rules according to your preference.
```json
{
"plugins": ["uvu"],
"rules": {
"uvu/prefer-is-for-primitives": "error"
}
}
```## Rules
| Rule ID | Description | Recommended | Fixable |
| ------- | ----------- | :---------: | :-----: |
| [uvu/no-identical-titles](./docs/rules/no-identical-titles.md) | Enforce each test case to have a unique title. | | |
| [uvu/prefer-is-for-primitives](./docs/rules/prefer-is-for-primitives.md) | Prefer `is` to `equal` for assertions against primitive literals. | | |## Contribution
When you add a new lint rule, please run `npm run new-rule`.
This will scaffold source, test, and documentation files.## License
This package is distributed under the MIT License.
See [LICENSE.md](./LICENSE.md) for details.