@rtlnl/eslint-config-rtlnl-base

2.1.3 • Public • Published

eslint-config-rtlnl-base

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

Introduction

This is the base ESLint configuration file used at rtlnederland.

It is based on Airbnb's base config and Prettier.

Installation

NPM

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

Yarn

yarn add --exact --dev eslint@latest @rtlnl/eslint-config-rtlnl-base 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-base"
  ],
  "env": {
    "node": true,
    "jest": true
  }
}


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


Package Sidebar

Install

npm i @rtlnl/eslint-config-rtlnl-base

Weekly Downloads

2

Version

2.1.3

License

MIT

Unpacked Size

66.4 kB

Total Files

5

Last publish

Collaborators

  • evghenii.notarius
  • sepehr.aliakbari