Shared eslint and prettier configuration
The package contains shared eslint and prettier settings configured to work together for Typescript and React.
Install package as development dependency:
yarn add --dev eslint-config-mocodingAdd the following to lines to package.json file:
"eslintConfig": {
"extends": "mocoding"
},
"prettier": "eslint-config-mocoding/prettier"Several important notes:
react/prop-typesis disabled. It does not required for Typescript@typescript-eslint/explicit-function-return-typechanged towarnandallowExpressionsis set to true.