Automagically add ESLint
support to react
setup by adding this package.
yarn add eslint @ganapativs/eslint-config-react --dev
// Tell editor to use eslint config from '@ganapativs/eslint-config-react'
// package.json
{
// ...
"eslintConfig": {
"extends": "@ganapativs/react"
},
// ...
}
# create `.eslintrc` in root folder of the service
# .eslintrc
{
"extends": "@ganapativs/react",
"rules": {
# custom rules here
}
}
# Scoped packages are private by default
npm publish --access public