eslint-config-payfit

PayFit ESLint Configuration


Keywords
eslint, eslintconfig, security
License
ISC
Install
npm install eslint-config-payfit@3.4.0

Documentation

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"]
}