Skip to content
This repository has been archived by the owner on Mar 1, 2023. It is now read-only.

smart-care/eslint-config-smartcare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-config-smartcare

This package includes the shareable ESLint configuration used by Smartcare.

Requirements

To see a list of the peer dependency requirements run:

npm info "eslint-config-smartcare@latest" peerDependencies

Install

Run the following command:

npx install-peerdeps --dev @smartcare/eslint-config-smartcare

Don't worry if you are using Yarn install-peerdeps will work with Yarn.

Then create a file named .eslintrc.js with the following contents in the root folder of your project:

{
  "extends": "@smartcare/eslint-config-smartcare"
}

For the Prettier config create a file named prettier.config.js with the following contents in the root folder of your project:

module.exports = require('@smartcare/eslint-config-smartcare/prettier.config');