Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-mrb3k-jest

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-mrb3k-jest

An ESLint shareable config used repeatedly in our projects inside of jest __test__ folders. So, I decided to make it a shareable config.

  • 1.3.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-90%
Maintainers
2
Weekly downloads
 
Created
Source

eslint-config-mrb3k-jest

Frequently used eslint configuration for directories containing Jest + Enzyme tests for React components. So, I decided to make this into a shareable config.

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-config-mrb3k-jest:

$ npm install eslint-config-mrb3k-jest --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-config-mrb3k-jest globally.

Usage

Add mrb3k-jest to the extends section of your .eslintrc configuration file. You can omit the eslint-config- prefix:

{
    "extends": [
        "mrb3k-jest"
    ]
}

I gennerally add the "root" option inside of _test_ folders. "root" tells eslint to stop casscading eslintrc files. It isolates the test folder and only uses our config without inheriting from configurations in ancestor folders.

{
    "root": true,
    "extends": [
        "mrb3k-jest"
    ]
}

Keywords

FAQs

Package last updated on 07 Nov 2018

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