Skip to content

yudai-nkt/eslint-plugin-uvu

Repository files navigation

eslint-plugin-uvu

test version code style: prettier license

ESLint plugin for 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.

{
  "plugins": ["uvu"],
  "rules": {
    "uvu/prefer-is-for-primitives": "error"
  }
}

Rules

Rule ID Description Recommended Fixable
uvu/no-identical-titles Enforce each test case to have a unique title.
uvu/prefer-is-for-primitives 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 for details.