New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@mocha/eslint-config-mocha

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mocha/eslint-config-mocha

ESLint config for mochajs projects

  • 0.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-config-mocha

ESLint config for mochajs projects

Summary

Does nothing remarkable with linting your tests! Intended for use by projects under the Mocha.js GitHub org.

As of this writing, this config is unused by any published project. Except this one, I guess.

Install

Install with npm

$ npm i eslint eslint-config-standard eslint-plugin-import eslint-plugin-promise eslint-plugin-standard eslint-plugin-mocha-only eslint-config-mocha --save-dev

(About ESLint & peerDependencies)

Usage

Assuming a JSON ESLint config, add the following to the root .eslintrc.json:

{
  "extends": "mocha"
}

For ES6 Modules

If using ES6 modules, instead:

{
  "extends": "mocha/es6"
}

For Tests

In your test/.eslintrc.json, try this:

{
  "extends": "mocha/test"
}

License

Copyright (c) 2016 JS Foundation and contributors

Licensed Apache-2.0

FAQs

Package last updated on 31 Oct 2016

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc