eslint-plugin-testing-library
Advanced tools
Comparing version 1.1.1 to 1.2.0
@@ -9,2 +9,3 @@ 'use strict'; | ||
'no-dom-import': require('./rules/no-dom-import'), | ||
'prefer-expect-query-by': require('./rules/prefer-expect-query-by'), | ||
}; | ||
@@ -15,2 +16,3 @@ | ||
'testing-library/no-await-sync-query': 'error', | ||
'testing-library/prefer-expect-query-by': 'error', | ||
}; | ||
@@ -17,0 +19,0 @@ |
{ | ||
"name": "eslint-plugin-testing-library", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "ESLint rules for Testing Library", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -9,5 +9,18 @@ <div align="center"> | ||
<h1>eslint-plugin-testing-library</h1> | ||
<p>ESLint plugin for Testing Library</p> | ||
<p>ESLint plugin to follow best practices and anticipate common mistakes when writing tests with Testing Library</p> | ||
</div> | ||
<hr> | ||
[![Build status][build-badge]][build-url] | ||
[![Package version][version-badge]][version-url] | ||
[![MIT License][license-badge]][license-url] | ||
<br> | ||
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)](https://github.com/semantic-release/semantic-release) | ||
[![PRs Welcome][pr-badge]][pr-url] | ||
<br> | ||
[![Watch on Github][gh-watchers-badge]][gh-watchers-url] | ||
[![Star on Github][gh-stars-badge]][gh-stars-url] | ||
[![Tweet][tweet-badge]][tweet-url] | ||
## Installation | ||
@@ -119,14 +132,29 @@ | ||
| Rule | Description | Recommended | Frameworks | Fixable | | ||
| -------------------------------------------------------- | ---------------------------------------------- | ---------------- | -------------------------------- | ------------ | | ||
| [await-async-query](docs/rules/await-async-query.md) | Enforce async queries to have proper `await` | ![recommended][] | | | | ||
| [await-fire-event](docs/rules/await-fire-event.md) | Enforce async fire event methods to be awaited | | ![vue][] | | | ||
| [no-await-sync-query](docs/rules/no-await-sync-query.md) | Disallow unnecessary `await` for sync queries | ![recommended][] | | | | ||
| [no-debug](docs/rules/no-debug.md) | Disallow the use of `debug` | | ![angular][] ![react][] ![vue][] | | | ||
| [no-dom-import](docs/rules/no-dom-import.md) | Disallow importing from DOM Testing Library | | ![angular][] ![react][] ![vue][] | ![fixable][] | | ||
| Rule | Description | Configurations | Fixable | | ||
| -------------------------------------------------------------- | ---------------------------------------------- | ------------------------------------------------------------------------- | ------------------ | | ||
| [await-async-query](docs/rules/await-async-query.md) | Enforce async queries to have proper `await` | ![recommended-badge][] ![angular-badge][] ![react-badge][] ![vue-badge][] | | | ||
| [await-fire-event](docs/rules/await-fire-event.md) | Enforce async fire event methods to be awaited | ![vue-badge][] | | | ||
| [no-await-sync-query](docs/rules/no-await-sync-query.md) | Disallow unnecessary `await` for sync queries | ![recommended-badge][] ![angular-badge][] ![react-badge][] ![vue-badge][] | | | ||
| [no-debug](docs/rules/no-debug.md) | Disallow the use of `debug` | ![angular-badge][] ![react-badge][] ![vue-badge][] | | | ||
| [no-dom-import](docs/rules/no-dom-import.md) | Disallow importing from DOM Testing Library | ![angular-badge][] ![react-badge][] ![vue-badge][] | ![fixable-badge][] | | ||
| [prefer-expect-query-by](docs/rules/prefer-expect-query-by.md) | Disallow the use of `expect(getBy*)` | ![recommended-badge][] ![angular-badge][] ![react-badge][] ![vue-badge][] | | | ||
[recommended]: https://img.shields.io/badge/recommended-lightgrey?style=flat-square | ||
[fixable]: https://img.shields.io/badge/fixable-success?style=flat-square | ||
[angular]: https://img.shields.io/badge/-Angular-black?style=flat-square&logo=angular&logoColor=white&labelColor=DD0031&color=black | ||
[react]: https://img.shields.io/badge/-React-black?style=flat-square&logo=react&logoColor=white&labelColor=61DAFB&color=black | ||
[vue]: https://img.shields.io/badge/-Vue-black?style=flat-square&logo=vue.js&logoColor=white&labelColor=4FC08D&color=black | ||
[build-badge]: https://img.shields.io/travis/Belco90/eslint-plugin-testing-library?style=flat-square | ||
[build-url]: https://travis-ci.org/belco90/eslint-plugin-testing-library | ||
[version-badge]: https://img.shields.io/npm/v/eslint-plugin-testing-library?style=flat-square | ||
[version-url]: https://www.npmjs.com/package/eslint-plugin-testing-library | ||
[license-badge]: https://img.shields.io/npm/l/eslint-plugin-testing-library?style=flat-square | ||
[license-url]: https://github.com/belco90/eslint-plugin-testing-library/blob/master/license | ||
[pr-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square | ||
[pr-url]: http://makeapullrequest.com | ||
[gh-watchers-badge]: https://img.shields.io/github/watchers/Belco90/eslint-plugin-testing-library?style=social | ||
[gh-watchers-url]: https://github.com/belco90/eslint-plugin-testing-library/watchers | ||
[gh-stars-badge]: https://img.shields.io/github/stars/Belco90/eslint-plugin-testing-library?style=social | ||
[gh-stars-url]: https://github.com/belco90/eslint-plugin-testing-library/stargazers | ||
[tweet-badge]: https://img.shields.io/twitter/url?style=social&url=https%3A%2F%2Fgithub.com%2FBelco90%2Feslint-plugin-testing-library | ||
[tweet-url]: https://twitter.com/intent/tweet?url=https%3a%2f%2fgithub.com%2fbelco90%2feslint-plugin-testing-library&text=check%20out%20eslint-plugin-testing-library%20by%20@belcodev | ||
[recommended-badge]: https://img.shields.io/badge/recommended-lightgrey?style=flat-square | ||
[fixable-badge]: https://img.shields.io/badge/fixable-success?style=flat-square | ||
[angular-badge]: https://img.shields.io/badge/-Angular-black?style=flat-square&logo=angular&logoColor=white&labelColor=DD0031&color=black | ||
[react-badge]: https://img.shields.io/badge/-React-black?style=flat-square&logo=react&logoColor=white&labelColor=61DAFB&color=black | ||
[vue-badge]: https://img.shields.io/badge/-Vue-black?style=flat-square&logo=vue.js&logoColor=white&labelColor=4FC08D&color=black |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25244
11
548
159
1