Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mainmatter/eslint-plugin-qunit-dom
An ESLint plugin for qunit-dom that automatically fixes the most common issues.
https://github.com/mainmatter/eslint-plugin-qunit-dom
ember emberjs eslint eslint-plugin hacktoberfest qunit qunit-dom
Last synced: 6 days ago
JSON representation
An ESLint plugin for qunit-dom that automatically fixes the most common issues.
- Host: GitHub
- URL: https://github.com/mainmatter/eslint-plugin-qunit-dom
- Owner: mainmatter
- License: mit
- Created: 2020-10-13T14:37:49.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-23T16:51:57.000Z (4 months ago)
- Last Synced: 2024-10-23T23:47:50.395Z (4 months ago)
- Topics: ember, emberjs, eslint, eslint-plugin, hacktoberfest, qunit, qunit-dom
- Language: JavaScript
- Homepage: https://npmjs.org/package/eslint-plugin-qunit-dom
- Size: 1.54 MB
- Stars: 2
- Watchers: 5
- Forks: 4
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
eslint-plugin-qunit-dom
==============================================================================An ESLint plugin for [qunit-dom] that automatically fixes the most common issues.
[qunit-dom]: https://github.com/Mainmatter/qunit-dom
Compatibility
------------------------------------------------------------------------------- [ESLint](https://eslint.org/) 7.0.0 or above
- [Node.js](https://nodejs.org/) 12.x or aboveInstallation
------------------------------------------------------------------------------```shell
yarn add --dev eslint-plugin-qunit-dom
```Or
```shell
npm install --save-dev eslint-plugin-qunit-dom
```Usage
------------------------------------------------------------------------------Modify your `.eslintrc.js` by adding the `plugin:qunit-dom/recommended` config
to the `extends` list:```js
// .eslintrc.js
module.exports = {
extends: [
// ...
'plugin:qunit-dom/recommended'
],
};
```Rules
------------------------------------------------------------------------------💼 Configurations enabled in.\
✅ Set in the `recommended` configuration.\
🔧 Automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/user-guide/command-line-interface#--fix).| Name | Description | 💼 | 🔧 |
| :-------------------------------------------------- | :---------------------------------------------------- | :- | :- |
| [no-checked-selector](rules/no-checked-selector.md) | disallow use of `assert.dom('.foo:checked').exists()` | ✅ | 🔧 |
| [no-ok-find](rules/no-ok-find.md) | disallow use of `assert.ok(find(...))` | ✅ | 🔧 |
| [require-assertion](rules/require-assertion.md) | require at least one assertion on `assert.dom()` | ✅ | 🔧 |License
------------------------------------------------------------------------------This project is developed by and © [Mainmatter GmbH](http://mainmatter.com)
and contributors. It is released under the [MIT License](./LICENSE).