Skip to content

mocoding-software/eslint-config-mocoding

Repository files navigation

eslint-config-mocoding

Shared eslint and prettier configuration

The package contains shared eslint and prettier settings configured to work together for Typescript and React.

Getting started

Install package as development dependency:

yarn add --dev eslint-config-mocoding

Add the following to lines to package.json file:

  "eslintConfig": {
    "extends": "mocoding"
  },
  "prettier": "eslint-config-mocoding/prettier"

Details

Several important notes:

  1. react/prop-types is disabled. It does not required for Typescript
  2. @typescript-eslint/explicit-function-return-type changed to warn and allowExpressions is set to true.