1.0.1 • Published 2 years ago

pk_eslint-config-node v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

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

  1. In your project folder, run:
yarn add -dev pk_eslint-config-node
npx install-peerdeps --dev pk_eslint-config-node
  1. You will see several dependencies were installed. Now, create (or update) a .eslintrc file with the following content:
{
  'extends': [
    'pk_eslint-config-node'
  ]
}
  1. Copy the .prettierrc file from this repository into your project folder