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: 2 months 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 (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-10T20:19:48.000Z (almost 2 years ago)
- Last Synced: 2025-04-07T12:48:31.561Z (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
[](https://github.com/yudai-nkt/eslint-plugin-uvu/actions/workflows/test.yml)
[](https://www.npmjs.com/package/eslint-plugin-uvu)
[](https://github.com/prettier/prettier)
[](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.