$ npm i -D eslint eslint-config-smashcast
Then add it to your .eslintrc
{
"extends": [
"smashcast"
]
}
Eslint config properties like env
or globals
are strongly
project specific so you have to set them in your own .eslintrc file.
For instance:
{
"env": {
"browser": true
},
"globals": {
"React": true
},
"extends": [
"smashcast"
]
}
To get an insight how it works check the official documentation.