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
Each rule has emojis denoting:
-
✅ if the rule is part of therecommended
config -
🔧 if some problems reported by the rule are automatically fixable by the--fix
command line option -
💡 if some problems reported by the rule are manually fixable by editor suggestions
Name | Description | |||
---|---|---|---|---|
no-checked-selector | disallow use of assert.dom('.foo:checked').exists()
|
|||
no-ok-find | disallow use of assert.ok(find(...))
|
License
This project is developed by and © simplabs GmbH and contributors. It is released under the MIT License.