@awardit/eslint-config-xo
v0.3.0
Published
ESLint shareable config for Awardit AB base code style, to be used with eslint-config-xo
Downloads
3
Readme
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.