@strv/eslint-config-mocha
v4.0.0
Published
STRV's ESLint config for projects using Mocha as test runner
Downloads
1,171
Readme
@strv/eslint-config-mocha
Configuration for Mocha test files.
Installation
npm install -D @strv/eslint-config-mocha
Usage
// eslint.config.mjs
import mocha from '@strv/eslint-config-mocha'
/** @type {Array<import("eslint").Linter.FlatConfig>} */
const config = [{
// Perhaps also apply other configs?
{ files: ['**/*.test.js'], ...mocha },
}]
export default config
License
See the LICENSE file for information.