Skip to content

Latest commit

 

History

History
64 lines (46 loc) · 2.13 KB

README.md

File metadata and controls

64 lines (46 loc) · 2.13 KB

eslint-plugin-qunit-dom

An ESLint plugin for qunit-dom that automatically fixes the most common issues.

Compatibility

Installation

yarn add --dev eslint-plugin-qunit-dom

Or

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:

// .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.

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() 🔧

License

This project is developed by and © Mainmatter GmbH and contributors. It is released under the MIT License.