0.0.3-alpha • Published 4 years ago
cra-template-maciek v0.0.3-alpha
cra-template-maciek
This is a Create React App TypeScript template with some additional tweaks.
To use this template, add --template maciek when creating a new app.
For example:
npx create-react-app my-app --template maciek
# or
yarn create react-app my-app --template maciekMy tweaks
- removed all the boilerplate (logo, css, links, etc.). Everything you get is:
function App() {
return (
<div>
<h1>Simple TS Template</h1>
</div>
);
}- already installed prettier, added simple config, and npm script to format all files
- ESLint config is extracted from
package.jsonto a.eslintrc.js. In addition to defaults, it sorts your imports usingsimple-import-sortplugin npm run sort- will sort yourpackage.jsonand remove redundanteslintConfigproperty since it's now in a separate file. Checkscripts/sort-package-json.jsto see how it's done
More information
- Getting Started – How to create a new app.
- User Guide – How to develop apps bootstrapped with Create React App.