Custom eslint config based on Airbnb's and prettier configs.
This config use React specific rules.
-
npm info "eslint-config-pietile@latest" peerDependencies
- to get the peer dependencies and versions. -
yarn add --dev <dependency>@<version>
for each listed peer dependency. -
yarn add --dev eslint-config-pietile
to install config. - Create
.eslintrc.js
file in root of your project.
module.exports = {
extends: ['pietile'],
};
-
Optional. If you use prettier create
.prettierrc
file in root of your project
{
"singleQuote": true,
"printWidth": 100,
"trailingComma": "all"
}
MIT License. © Maksim Milyutin and Vladislav Shabanov 2018