0.2.0 • Published 3 years ago

eslint-plugin-qunit-dom v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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 the recommended 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
NameDescription🔧💡
no-checked-selectordisallow use of assert.dom('.foo:checked').exists()
no-ok-finddisallow use of assert.ok(find(...))🔧

License

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