Skip to content
master
Go to file
Code

README.md

eslint-plugin-qunit

CI Coverage Status devDependency Status Join the chat at https://gitter.im/platinumazure/eslint-plugin-qunit

ESLint plugin containing rules useful for QUnit tests.

Configurations

You can extend from these configurations in order to simplify manual configuration of plugin rules in your project.

For more details on how to extend your configuration from one or both of these plugin configurations, please see the ESLint plugin configuration documentation.

Name Description
recommended This configuration includes rules which I recommend to avoid QUnit runtime errors or incorrect behavior, some of which can be difficult to debug. Some of these rules also encourage best practices that help QUnit work better for you. You can use this configuration by extending from "plugin:qunit/recommended" in your configuration file.
2️⃣ two This configuration includes rules which are useful for avoiding runtime errors or unexpected behavior in QUnit 2.0. You can use this configuration by extending from "plugin:qunit/two" in your configuration file.

Rules

Each rule has emojis denoting:

  • What configuration it belongs to
  • 🔧 if some problems reported by the rule are automatically fixable by the --fix command line option
Name
assert-args
🔧 literal-compare-order
🔧 no-arrow-tests
no-assert-equal
🔧 no-assert-equal-boolean
no-assert-logical-expression
no-assert-ok
no-async-in-loops
2️⃣ no-async-test
no-commented-tests
🔧 no-compare-relation-boolean
no-conditional-assertions
no-early-return
2️⃣ no-global-assertions
2️⃣ no-global-expect
2️⃣ no-global-module-test
2️⃣ no-global-stop-start
no-identical-names
2️⃣ no-init
2️⃣ no-jsdump
no-loose-assertions
🔧 no-negated-ok
no-nested-tests
🔧 no-ok-equality
no-only
2️⃣ no-qunit-push
2️⃣ no-qunit-start-in-tests
2️⃣ no-qunit-stop
2️⃣ no-reassign-log-callbacks
2️⃣ no-reset
2️⃣🔧 no-setup-teardown
no-skip
2️⃣ no-test-expect-argument
2️⃣ no-throws-string
require-expect
resolve-async

Contributors

Thanks goes to these wonderful people (emoji key):


Kevin Partington

💻 📖 ⚠️ 🐛 💡 👀

Jordan Eldredge

⚠️ 💬

Mitch Lloyd

💻 📖 ⚠️

John Mainz

⚠️ 🐛

Tobias Bieniek

💻 📖 ⚠️

Stephen Edgar

🐛

Timo Tijhof

📖 🤔

Ed S

🐛 💻

Brad Overton

🐛 💻

Shane Martin

🐛

ventuno

💻

Anne-Gaëlle Schall

🐛

Steve Calvert

💻

Aliaksandr Yermalayeu

💻

Bryan Mishkin

🐛 💻 📖 🤔

XhmikosR

🐛

Andrey Fel

🐛

This project follows the all-contributors specification. Contributions of any kind welcome!

Semantic Versioning Policy

Like ESLint itself, this ESLint plugin follows semantic versioning. However, due to the nature of ESLint as a code quality tool, it's not always clear when a minor or major version bump occurs. To help clarify this for everyone, we've defined the following semantic versioning policy, based on the policy used by ESLint:

  • Patch release (intended not to break your lint build)
    • A bug fix in a plugin rule that results in ESLint reporting fewer errors.
    • Improvements to documentation.
    • Non-user-facing changes such as refactoring code; adding, deleting, or modifying tests; and increasing test coverage.
    • Re-releasing after a failed release (i.e., after having published a release that doesn't work for anyone).
  • Minor release (might break your lint build)
    • A bug fix in a rule that results in ESLint reporting more errors.
    • A new rule is created (without being added to plugin configuration).
    • A new option to an existing rule is created (without any default options changing).
    • A new plugin configuration is created.
    • An existing rule is deprecated.
  • Major release (likely to break your lint build)
    • An existing plugin configuration is changed in any way, including but not limited to:
      • A new rule is added to the configuration.
      • A rule is removed from the configuration.
      • The options used in configuration for a rule are changed
    • An existing rule is removed.
    • A backward-incompatible change is made to the options of a rule.

About

ESLint plugin containing rules useful for QUnit tests.

Topics

Resources

License

Packages

No packages published
You can’t perform that action at this time.