0.2.0 • Published 5 years ago
@richardkall/eslint-config-base v0.2.0
@richardkall/web-scripts
Configs and CLI for JavaScript/TypeScript projects.
Installation
yarn add @richardkall/web-scripts husky --dev
Usage
Add scripts to your package.json
:
{
"scripts": {
"build": "web-scripts build",
"format": "web-scripts format",
"lint": "web-scripts lint",
"test": "web-scripts test",
"type-check": "web-scripts type-check"
},
"husky": {
"hooks": {
"pre-commit": "web-scripts pre-commit",
"pre-push": "web-scripts pre-push"
}
}
}
You can also use npx for one-off commands:
npx @richardkall/web-scripts format
See CLI documentation for more details.
Configurations
These configurations are included and can also be installed separately:
- @richardkall/eslint-config
- @richardkall/eslint-config-react
- @richardkall/eslint-config-react-native
- @richardkall/lint-staged-config
- @richardkall/prettier-config
- @richardkall/tsconfig
Inspiration
This project was inspired by @spotify/web-scripts, kcd-scripts & react-scripts.