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