@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.