1.1.1 • Published 3 years ago

@rtlnl/eslint-config-rtlnl-react v1.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
3 years ago

eslint-config-rtlnl-base

https://www.npmjs.com/package/@rtlnl/eslint-config-rtlnl-react

Introduction

This is the base ESLint configuration file used at rtlnederland.

It is based on Airbnb's config and Prettier.

Installation

NPM

npm install --save-dev eslint@latest@rtlnl/eslint-config-rtlnl-react prettier

Yarn

yarn add --exact --dev eslint@latest @rtlnl/eslint-config-rtlnl-react prettier

Your .eslintrc

To add the rules to your .eslintrc, extend the file with the package in the following manner:

{
  "extends": ["@rtlnl/rtlnl-base"]
}

Example:

.eslintrc.js
{
  "extends": [
    "@rtlnl/rtlnl-react"
  ],
  "env": {
    "node": true,
    "jest": true
  }
}


.prettierrc.js
module.exports = {
  ...require('@rtlnl/eslint-config-rtlnl-base/.prettierrc.js'),
  ...customParams
};