eslint-config-callstack-io
Callstack eslint config utilizing Airbnb config, Flow, Prettier and Jest support.
Plugins and configs used:
Additionally, it sets these environments:
{
"env": {
"browser": true,
"es6": true,
"node": true
}
}
And for test files matching default Jest testMatch
:
{
"env": {
"jest/globals": true
}
}
Installation
yarn add --dev eslint eslint-config-callstack-io
Note: We're using yarn
to install deps. Feel free to change commands to use npm
3+ and npx
if you like
Usage
Add to your eslint config (.eslintrc
, or eslintConfig
field in package.json
):
{
"extends": "callstack-io"
}