# eslint-plugin-mocha

> ESLint rules for Mocha test suites

Source: https://talira.ai/catalog/eslint-plugin-mocha-mtd5q0e6
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Plugin, Library
- Categories: [developer tools / linting](https://talira.ai/categories/developer-tools/linting), [languages / javascript](https://talira.ai/categories/languages/javascript)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Mathias Schreck](https://talira.ai/orgs/lo1tuma.md)

eslint-plugin-mocha adds [ESLint](https://talira.ai/catalog/eslint-0nyjt04g.md) rules for [Mocha](https://talira.ai/catalog/mocha-81yyxe95.md) test files, targeting Mocha 11's JavaScript interfaces, without running or requiring Mocha. It works with ESLint's flat config (ESLint 10.2 or later) and is applied only to test files. It's by Mathias Schreck.

## Links

- GitHub: https://github.com/lo1tuma/eslint-plugin-mocha

## Problems it solves

- lint Mocha test files with ESLint
- catch exclusive or skipped Mocha tests left in code
- enforce Mocha test conventions in CI

## Features

- ESLint rules for Mocha 11 interfaces
- flat config support
- no Mocha runtime dependency

## Trust

Overall: 0.58 out of 1.
Signals: maintenance 1.00, adoption 0.49, momentum 0.14, community 0.72, backing 0.30, extensibility 0.00.

- last commit yesterday
- 197 commits in the last 90 days
- latest release eslint-plugin-mocha@12.0.2 3 months ago
- 288 GitHub stars
- 62 contributors
- backed by Mathias Schreck

## Related

- Works with [ESLint](https://talira.ai/catalog/eslint-0nyjt04g.md)
- Works with [Mocha](https://talira.ai/catalog/mocha-81yyxe95.md)

## Alternatives

- [eslint-plugin-jest](https://talira.ai/catalog/eslint-plugin-jest-jw6hqh62.md): ESLint rules for Jest tests
- [eslint-plugin-vue](https://talira.ai/catalog/eslint-plugin-vue-bqccwamn.md): The official ESLint plugin for Vue.js
- [angular-eslint](https://talira.ai/catalog/angular-eslint-xvjgtm1k.md): ESLint support, rules and tooling for Angular projects
- [ESLint](https://talira.ai/catalog/eslint-0nyjt04g.md): Find and fix problems in your JavaScript code.
- [typescript-eslint](https://talira.ai/catalog/typescript-eslint-02q6r6jn.md): The tooling that lets ESLint and Prettier lint and read TypeScript
- [Oxc](https://talira.ai/catalog/oxc-x57vf6nn.md): The JavaScript Oxidation Compiler: high-performance JavaScript and TypeScript tools in Rust

## Sources

[^1]: https://github.com/lo1tuma/eslint-plugin-mocha/blob/main/LICENSE (checked 29 Nov 2026)
