Skip to content
This repository has been archived by the owner on Jun 14, 2022. It is now read-only.

PayFit/eslint-config-payfit

Repository files navigation

<================================================>

<================= [DEPRECATED] =================>

<================================================>

Note: This configuration has been deprecated in favor of https://github.com/PayFit/core-packages/tree/master/packages/eslint-config

Commitizen friendly

eslint-config-payfit

How to install

npx install-peerdeps --dev eslint-config-payfit

How to use

Required configuration

This configuration adds the common javascript rules. Edit your .eslintrc file:

{
    "extends": ["payfit"]
}

Browser configuration

This configuration adds the common javascript rules and the browser rules (react for example). Edit your .eslintrc file:

{
    "extends": ["payfit", "payfit/react"]
}

Nodejs configuration

This configuration adds the common javascript rules and the nodejs rules. Edit your .eslintrc file:

{
    "extends": ["payfit", "payfit/node"]
}

Testing configuration

This configuration adds the common javascript rules and the jest rules. Edit your .eslintrc file:

{
    "extends": ["payfit", "payfit/jest"]
}