Install dependencies:
$ yarn add --dev eslint @ftw/eslint-config-ts
Create an .eslintrc
file in the root of your project:
{
"extends": ["@ftw/eslint-config-ts"],
"env": {
"node": true,
"browser": true
}
}
Add a lint
script to your package.json
:
"scripts": {
"lint": "eslint \"client/**/*.{js,ts,tsx}\""
}
You can publish a new version of the package by running yarn publish
. Lerna will prompt you to choose new version numbers before the package is published.