1.0.1 • Published 3 years ago
pk_eslint-config-node v1.0.1
Node: ESLint (and Prettier) config
These are common settings for ESLint and Prettier used for Typescript Node Applications.
What it does
This setup lints your JavaScript code based on practices. Check the .eslintrc.js file to see what is included.
Installing
- In your project folder, run:
yarn add -dev pk_eslint-config-node
npx install-peerdeps --dev pk_eslint-config-node- You will see several dependencies were installed. Now, create (or update) a
.eslintrcfile with the following content:
{
'extends': [
'pk_eslint-config-node'
]
}- Copy the
.prettierrcfile from this repository into your project folder