@smartcare/eslint-config-smartcare

Smartcare ESLint Config

Usage no npm install needed!

<script type="module">
  import smartcareEslintConfigSmartcare from 'https://cdn.skypack.dev/@smartcare/eslint-config-smartcare';
</script>

README

Smartcare ESLint Config

This package includes the shareable ESLint configuration used by Smartcare.

Requirements

To see a list of the peer dependency requirements run:

npm info "@smartcare/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');