For lazy person like me, have pre-defined
react
project config ofeslint
+prettier
installed together with their dependenies.
Install:
$ yarn add --dev react-coding-style
Edit .eslintrc.js
const style = require('react-coding-style')
module.exports = style.tslint
Edit .prettierrc.js
const style = require('react-coding-style')
module.exports = style.prettier