Socket
Book a DemoInstallSign in
Socket

@mitchreece/eslint-config-base

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

@mitchreece/eslint-config-base

Standard eslint config options for javascript projects

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

@mitchreece/eslint-config-base

Native javascript linter configuration options for eslint.

Installation

Install this eslint config by adding the npm package to your projects dev dependencies.

yarn:

yarn add @mitchreece/eslint-config-base --dev

npm:

npm i @mitchreece/eslint-config-base --save-dev

Usage

To use these rules in your eslint setup just extend the npm package in your eslint config file.

{
  "extends": "@mitchreece/eslint-config-base"
}

Environments

There are also more specific config files for both browser and node environments. These env specific config files can be extended in your eslint config file.

browser:

  "extends": "@mitchreece/eslint-config-base/browser"

node:

  "extends": "@mitchreece/eslint-config-base/node"

Compatibility

Prettier

There is a bit of overlap between eslint and prettier rules causing compatibility issues between the two.

Look at the .eslintrc file in the root of this monorepo to see an example of configuring eslint to work with prettier.

License

This project is licensed under the MIT License.

FAQs

Package last updated on 27 Oct 2019

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