eslint-plugin-qunit-dom

0.2.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i eslint-plugin-qunit-dom

Weekly Downloads

16,669

Version

0.2.0

License

MIT

Unpacked Size

15.4 kB

Total Files

9

Last publish

Collaborators

  • mainmatter