An ESLint plugin for qunit-dom that automatically fixes the most common issues.
yarn add --dev eslint-plugin-qunit-dom
Or
npm install --save-dev eslint-plugin-qunit-dom
Modify your .eslintrc.js
by adding the plugin:qunit-dom/recommended
config
to the extends
list:
// .eslintrc.js
module.exports = {
extends: [
// ...
'plugin:qunit-dom/recommended'
],
};
💼 Configurations enabled in.
✅ Set in the recommended
configuration.
🔧 Automatically fixable by the --fix
CLI option.
Name | Description | 💼 | 🔧 |
---|---|---|---|
no-checked-selector | disallow use of assert.dom('.foo:checked').exists() |
✅ | 🔧 |
no-ok-find | disallow use of assert.ok(find(...)) |
✅ | 🔧 |
require-assertion | require at least one assertion on assert.dom() |
✅ | 🔧 |
This project is developed by and © Mainmatter GmbH and contributors. It is released under the MIT License.