@mocoding/eslint-config

1.0.2 • Public • Published

@mocoding/eslint-config

Shared eslint and prettier configuration

This package is a part of @mocoding/react-app library. It contains shared eslint and prettier settings configured to work together for Typescript and React.

Getting started

Install package as development dependency:

yarn add --dev @mocoding/eslint-config

Add the following to lines to package.json file:

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

Details

Several important notes:

  1. Width is set to 90 as I found it anough to fit into 27' monitor with split screen, files browser and map. It works for me. It may work for you but it will not work for everybody. Example
  2. react/prop-types is disabled. It does not required for Typescript
  3. @typescript-eslint/explicit-function-return-type changed to warn and allowExpressions is set to true.

Readme

Keywords

none

Package Sidebar

Install

npm i @mocoding/eslint-config

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

3.09 kB

Total Files

5

Last publish

Collaborators

  • offbeatful