5.0.0 • Published 7 years ago
@emmiep/eslint-config v5.0.0
@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-configOr using npm:
npm install -D eslint @emmiep/eslint-configThen 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-configOr by using npm:
npm install -D eslint eslint-plugin-react @emmiep/eslint-configYour 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"
}