All Projects → platinumazure → eslint-plugin-qunit

platinumazure / eslint-plugin-qunit

Licence: MIT License
ESLint plugin containing rules useful for QUnit tests.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to eslint-plugin-qunit

eslint-plugin-no-secrets
An eslint plugin to find strings that might be secrets/credentials
Stars: ✭ 93 (+257.69%)
Mutual labels:  eslint-plugin
eslint-plugin-ban
Ban some methods and functions
Stars: ✭ 23 (-11.54%)
Mutual labels:  eslint-plugin
eslint-plugin-nestjs
POC. ESLint rules for nestjs framework
Stars: ✭ 30 (+15.38%)
Mutual labels:  eslint-plugin
html-eslint
ESLint plugin for linting HTML
Stars: ✭ 72 (+176.92%)
Mutual labels:  eslint-plugin
eslint-plugin-svelte
ESLint plugin for Svelte using AST
Stars: ✭ 22 (-15.38%)
Mutual labels:  eslint-plugin
eslint-plugin-total-functions
An ESLint plugin to enforce the use of total functions (and prevent the use of partial functions) in TypeScript.
Stars: ✭ 72 (+176.92%)
Mutual labels:  eslint-plugin
eslint-plugin-mongodb
🔎 MongoDB best practices rules for ESLint
Stars: ✭ 17 (-34.62%)
Mutual labels:  eslint-plugin
eslint-config-adjunct
A reasonable collection of plugins to use alongside your main esLint configuration
Stars: ✭ 39 (+50%)
Mutual labels:  qunit
eslint-plugin-react-hook-form
ESLint plugin for react-hook-form
Stars: ✭ 27 (+3.85%)
Mutual labels:  eslint-plugin
eslint-plugin-decorator-position
ESLint plugin for enforcing decorator position
Stars: ✭ 32 (+23.08%)
Mutual labels:  eslint-plugin
eslint-plugin-rulesdir
An ESLint plugin to load project-specific ESLint rules
Stars: ✭ 28 (+7.69%)
Mutual labels:  eslint-plugin
eslint-plugin-disable
Disable ESLint plugins using file path patterns and inline comments
Stars: ✭ 51 (+96.15%)
Mutual labels:  eslint-plugin
eslint-plugin
autofix some errors reported by eslint rules.
Stars: ✭ 74 (+184.62%)
Mutual labels:  eslint-plugin
eslint-plugin-pug
An ESLint plugin for linting inline scripts in Pug files
Stars: ✭ 17 (-34.62%)
Mutual labels:  eslint-plugin
eslint-plugin-lodash-template
ESLint plugin for John Resig-style micro template, Lodash's template, Underscore's template and EJS.
Stars: ✭ 15 (-42.31%)
Mutual labels:  eslint-plugin
typescript-eslint-demo
typescript eslint playground
Stars: ✭ 25 (-3.85%)
Mutual labels:  eslint-plugin
eslint-plugin-layout-shift
ESLint plugin to force responsive media elements to set the width/height attributes
Stars: ✭ 15 (-42.31%)
Mutual labels:  eslint-plugin
eslint-plugin
😎 基于 @lint-md,提供 eslint-plugin,让 lint-md 玩家在 IDE 中得到愉悦的文档编写体验。
Stars: ✭ 22 (-15.38%)
Mutual labels:  eslint-plugin
eslint-plugin-expect-type
ESLint plugin with $ExpectType, $ExpectError, and $ExpectTypeSnapshot type assertions
Stars: ✭ 27 (+3.85%)
Mutual labels:  eslint-plugin
eslint-plugin-strict-vue
Vue eslint plugin with rules to make you code stricter: enforce jsdoc, restrict rootGetters, rootState and more.
Stars: ✭ 28 (+7.69%)
Mutual labels:  eslint-plugin

eslint-plugin-qunit

NPM version CI Coverage 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 a configuration in order to simplify manual configuration of plugin rules in your project.

For more details on how to extend your configuration from a plugin configuration, 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.

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
  • 💡 if some problems reported by the rule are manually fixable by editor suggestions
Name Description 🔧 💡
assert-args enforce that the correct number of assert arguments are used
literal-compare-order enforce comparison assertions have arguments in the right order 🔧
no-arrow-tests disallow arrow functions as QUnit test/module callbacks 🔧
no-assert-equal disallow the use of assert.equal 💡
no-assert-equal-boolean require use of boolean assertions 🔧
no-assert-logical-expression disallow binary logical expressions in assert arguments
no-assert-ok disallow the use of assert.ok/assert.notOk
no-async-in-loops disallow async calls in loops
no-async-module-callbacks disallow async module callbacks
no-async-test disallow the use of asyncTest or QUnit.asyncTest
no-commented-tests disallow commented tests
no-compare-relation-boolean disallow comparing relational expressions to booleans in assertions 🔧
no-conditional-assertions disallow assertions within if statements or conditional expressions
no-early-return disallow early return in tests
no-global-assertions disallow global QUnit assertions
no-global-expect disallow global expect
no-global-module-test disallow global module/test/asyncTest
no-global-stop-start disallow global stop/start
no-hooks-from-ancestor-modules disallow the use of hooks from ancestor modules
no-identical-names disallow identical test and module names
no-init disallow use of QUnit.init
no-jsdump disallow use of QUnit.jsDump
no-loose-assertions disallow the use of assert.equal/assert.ok/assert.notEqual/assert.notOk
no-negated-ok disallow negation in assert.ok/assert.notOk 🔧
no-nested-tests disallow nested QUnit.test() calls
no-ok-equality disallow equality comparisons in assert.ok/assert.notOk 🔧
no-only disallow QUnit.only
no-qunit-push disallow QUnit.push
no-qunit-start-in-tests disallow QUnit.start() within tests or test hooks
no-qunit-stop disallow QUnit.stop
no-reassign-log-callbacks disallow overwriting of QUnit logging callbacks
no-reset disallow QUnit.reset
no-setup-teardown disallow setup/teardown module hooks 🔧
no-skip disallow QUnit.skip
no-test-expect-argument disallow the expect argument in QUnit.test
no-throws-string disallow assert.throws() with block, string, and message args
require-expect enforce that expect is called
require-object-in-propequal enforce use of objects as expected value in assert.propEqual
resolve-async require that async calls are resolved

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.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].