@emmiep/eslint-config

5.0.0 • Public • Published

@emmiep/eslint-config

A sharable eslint configuration with ESNext and jsx support by default, based on my personal preferences.

Installation

Using yarn:

yarn add -D eslint @emmiep/eslint-config

Or using npm:

npm install -D eslint @emmiep/eslint-config

Then extend the configuration from your .eslintrc:

{
  "extends": "@emmiep"
}

React/Preact support

Full React/Preact support requires the optional peer dependency eslint-plugin-react to be installed as well:

yarn add -D eslint eslint-plugin-react @emmiep/eslint-config

Or by using npm:

npm install -D eslint eslint-plugin-react @emmiep/eslint-config

Your configuration has to extend the react configuration instead of the default configuration:

{
  "extends": "@emmiep/eslint-config/react"
}

For Preact support extend the preact configuration:

{
  "extends": "@emmiep/eslint-config/preact"
}

Package Sidebar

Install

npm i @emmiep/eslint-config

Weekly Downloads

1

Version

5.0.0

License

MIT

Unpacked Size

6.83 kB

Total Files

8

Last publish

Collaborators

  • emmiep