Skip to content

eslint-config-platypus 2.1.0

Install from the command line:
Learn more about npm packages
$ npm install @92green/eslint-config-platypus@2.1.0
Install via package.json:
"@92green/eslint-config-platypus": "2.1.0"

About this version

eslint-config-platypus

A reusable linting config for eslint with a focus on code quality and readability.

getting started

Using default configuration

install

npm i --save-dev eslint-config-platypus

if you do not have typescript

npm i --save-dev typescript

create a eslint config file .eslintrc.js

module.exports = { extends: ["eslint-config-platypus"] }

The default configuration contains rules for

  • code quality
  • formatting
  • jest
  • secrets
  • typescript

Using the React add on

If you wish to use the React configuration, which includes linting rules for react, react hooks as well as jest dom, install these additional dependencies:

npm i eslint-plugin-jest-dom eslint-plugin-react eslint-plugin-react-hooks --save-dev

Next extend the eslint config

module.exports = { extends: [
    "eslint-config-platypus",
    "eslint-config-platypus/react-addon"
    ] }

Using the Rxjs add on

If you wish to use the rxjs addon

npm i eslint-plugin-rxjs --save-dev
module.exports = { extends: [
    "eslint-config-platypus",
    "eslint-config-platypus/rxjs-addon"
    ] }

Details


Assets

  • eslint-config-platypus-2.1.0.tgz

Download activity

  • Total downloads 0
  • Last 30 days 0
  • Last week 0
  • Today 0