@mitchreece/eslint-config-base

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @mitchreece/eslint-config-base

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

5.34 kB

Total Files

10

Last publish

Collaborators

  • mitchreece