0.2.8 • Published 5 years ago

@crossroads-loyalty-solutions/eslint-config-xo v0.2.8

Weekly downloads
11
License
MIT
Repository
github
Last release
5 years ago

Crossroads Loyalty Solutions JavaScript Code Style

Installation

npm i -DE xo @crossroads-loyalty-solutions/eslint-config-xo

Add the following to your package.json:

{
  "scripts": {
    "test:xo": "xo"
  },
  "xo": {
    "extends": [
      "@crossroads-loyalty-solutions/eslint-config-xo"
    ]
  }
}

React and GraphQL lints

React and GraphQL will only their lints if react and graphql modules are installed, respectively. This will avoid unnecessary depenencies or errors.