eslint-config-ellisio
This is a configuration package for projects I work on. You are welcome to use this if you want.
Features
- Based on the popular javascript code style from Airbnb
- easy switchable to their smaller set of rules eslint-config-airbnb-base
- with prettier support, thanks to eslint-plugin-prettier
- with react, react-hooks and jest support
Installation
The default export contains all default Airbnb ESLint rules, including ECMAScript 6+, and the ones listed below. It requires some peerDependencies as well.
Install the package with:
npm i eslint-config-ellisio -D
# or
yarn add eslint-config-ellisio -D
Usage
Now add the config to either your package.json
:
{
"eslintConfig": {
"extends": "eslint-config-ellisio"
}
}
to your .eslintrc
:
{
"extends": "eslint-config-ellisio"
}
or .eslintrc.js
:
module.exports = {
extends: 'eslint-config-ellisio',
}
Assumptions
This ESLint configuration comes with some fundamental assumptions:
- react and/or node environment
- browser and/or node environment
- parser: babel (used babel-eslint parser)
Even though I made some assumptions, you can easily overwrite, extend and unset rules and any other setting in your custom eslint config.
LICENSE
Maintainers
![]() Andrew Ellis |