2.0.0 • Published 2 years ago
@rtlnederland/eslint-config-rtlnl-react v2.0.0
eslint-config-rtlnl-react
https://www.npmjs.com/package/@rtlnederland/eslint-config-rtlnl-react
Introduction
This is the base ESLint configuration file used at rtlnederland for React projects.
It is based on Airbnb's config and Prettier.
Installation
NPM
npm install --save-dev @rtlnederland/eslint-config-rtlnl-react
Yarn
yarn add --exact --dev @rtlnederland/eslint-config-rtlnl-react
Your .eslintrc
To add the rules to your .eslintrc
, extend the file with the package in the following manner:
{
"extends": ["@rtlnederland/rtlnl-react"]
}
Example:
.eslintrc.js
{
"extends": [
"@rtlnederland/rtlnl-react"
],
"env": {
"node": true,
"jest": true
}
}
.prettierrc.js
module.exports = {
...require('@rtlnederland/eslint-config-rtlnl-react/.prettierrc.js'),
...customParams
};