@mocoding/eslint-config
v1.0.2
Published
Shared eslint and prettier configuration
Downloads
7
Readme
@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:
- 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.
react/prop-types
is disabled. It does not required for Typescript@typescript-eslint/explicit-function-return-type
changed towarn
andallowExpressions
is set to true.