My personal collection of all-in-one ESLint shareable configs. Most of them are based on Airbnb Javascript and Prettier, with additional plugins and configs.
Unlike most ESLint shareable configs, which declare peer dependencies, this NPM package declares
all its included ESLint plugins and configs as dependencies
directly. This design choice is
intentional, in order to simplify its usage to the minimum (ESLint's extends
field).
Prerequisites:
npm install --save-dev eslint
npm install --save-dev eslint-config-amercier
Every base config is designed with the following Prettier options in mind:
{
"singleQuote": true,
"trailingComma": "all"
}
amercier/create-react-app
Config for projects generated with Create React App.
{
"root": true,
"extends": ["amercier/create-react-app"]
}
recommended
recommended
, minus more/no-window
recommended
recommended
+ exceptionsrecommended
recommended
+ style
+ more rulesrecommended
prettier
+ prettier/react
+ prettier/unicorn
See create-react-app config for more details.
amercier/vue-cli
Config for projects generated with Vue CLI.
{
"root": true,
"extends": ["amercier/vue-cli"]
}
recommended
+ more rulesrecommended
, minus more/no-window
recommended
+ exceptionsrecommended
+ style
+ more rulesrecommended
See vue-cli config for more details.
This configs can be added to any base config. Each of them are independent and can be combined.
amercier/with/flowtype
Add support for Flow.
Example with amercier/create-react-app
:
{
"root": true,
"extends": ["amercier/create-react-app", "amercier/with-flowtype"]
}
prettier/flowtype
See with/flowtype config for more details.
amercier/with/redux
Add support for Redux.
Example with amercier/create-react-app
:
{
"root": true,
"extends": ["amercier/create-react-app", "amercier/with-redux"]
}
recommended
, minus react-redux/prefer-separate-component-file
+ exceptionsSee with/redux config for more details.
amercier/with/redux-saga
Add support for redux-saga.
Example with amercier/create-react-app
and amercier/with/redux
:
{
"root": true,
"extends": [
"amercier/create-react-app",
"amercier/with-redux",
"amercier/with-redux-saga"
]
}
all
+ exceptionsSee with/redux-saga config for more details.
Please read guidelines for contributing.
This ESLint config was created using eslint-config-template