An ESLint plugin for qunit-dom that automatically fixes the most common issues.
yarn add --dev eslint-plugin-qunit-domOr
npm install --save-dev eslint-plugin-qunit-domModify 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.