Skip to content

Latest commit

 

History

History

eslint-config-mocha

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

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