Install the config of your choice, eslint and prettier:
yarn add -D eslint prettier
# one of
yarn add -D https://gitpkg.now.sh/jurajmatus/eslint-configs/packages/eslint-config-ts-node-strict
Add this to .eslintrc.json
:
{
- "extends": [],
+ "extends": ["ts-node-strict"],
}
which can be done with jq
:
(cat .eslintrc.json || echo '{}') | jq '.extends += ["ts-node-strict"]'
Create .prettierrc.js
:
const prettierBase = require("prettier-config");
module.exports = prettierBase;