πŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more β†’
Socket
Sign inDemoInstall
Socket

eslint-plugin-qunit

Package Overview
Dependencies
Maintainers
2
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-qunit

ESLint plugin containing rules useful for QUnit tests.

8.1.2
latest
Source
npm
Version published
Weekly downloads
148K
22.28%
Maintainers
2
Weekly downloads
Β 
Created

What is eslint-plugin-qunit?

eslint-plugin-qunit is an ESLint plugin that provides linting rules for QUnit, a JavaScript unit testing framework. It helps ensure that QUnit tests follow best practices and maintain consistency.

What are eslint-plugin-qunit's main functionalities?

Enforce QUnit test naming conventions

This rule enforces naming conventions for QUnit tests to ensure they are descriptive and consistent.

module.exports = {
  rules: {
    'qunit/test-naming-conventions': 'error'
  }
};

Prevent the use of global QUnit assertions

This rule prevents the use of global QUnit assertions, encouraging the use of the `assert` object instead.

module.exports = {
  rules: {
    'qunit/no-global-assertions': 'error'
  }
};

Disallow async calls in QUnit tests

This rule disallows the use of asynchronous calls within loops in QUnit tests to avoid potential issues with test execution.

module.exports = {
  rules: {
    'qunit/no-async-in-loops': 'error'
  }
};

Other packages similar to eslint-plugin-qunit

Keywords

eslint

FAQs

Package last updated on 21 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts