You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

eslint-plugin-chai-friendly

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-chai-friendly

This plugin makes 'no-unused-expressions' rule friendly towards chai expect statements.

1.1.0
latest
Source
npmnpm
Version published
Weekly downloads
392K
-2.47%
Maintainers
1
Weekly downloads
 
Created

What is eslint-plugin-chai-friendly?

eslint-plugin-chai-friendly is an ESLint plugin designed to work with the Chai assertion library. It helps developers write cleaner and more maintainable test code by preventing false positives when using Chai's assertion syntax.

What are eslint-plugin-chai-friendly's main functionalities?

No-unused-expressions

This feature allows the use of Chai's 'expect' and 'should' assertions without triggering ESLint's 'no-unused-expressions' rule. It ensures that expressions like 'expect(foo).to.be.true;' are not flagged as errors.

/* eslint chai-friendly/no-unused-expressions: 2 */
expect(foo).to.be.true;

Other packages similar to eslint-plugin-chai-friendly

Keywords

eslint

FAQs

Package last updated on 11 Jun 2025

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