1.0.2 • Published 3 years ago
cra-template-3sc-typescript v1.0.2
cra-template-3sc-typescript
3 Sided Cude's typescript template for Create React App.
Usage
Add --template 3sc-typescript
when creating a new app.
npx create-react-app my-app --template 3sc-typescript
# or
yarn create react-app my-app --template 3sc-typescript
What's included?
ts
andscss
added to the default cra templateeslint
,prettier
andstylelint
configsreact-app-rewired
overrides forreact-scripts
- see
config-overrides.js
- see
- pre-commit hook added using
husky
- see npm script
pre-commit
in package.json
- see npm script
lint-staged
config for eslint, stylelint and type checking
Development
To test the template with yarn use:
yarn create react-app my-app --template file:../path/to/template/cra-template-tsc-typescript