cra-template-maciek
v0.0.3-alpha
Published
Super simple TypeScript template for Create React App.
Downloads
2
Maintainers
Readme
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 maciek
My 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.json
to a.eslintrc.js
. In addition to defaults, it sorts your imports usingsimple-import-sort
plugin npm run sort
- will sort yourpackage.json
and remove redundanteslintConfig
property since it's now in a separate file. Checkscripts/sort-package-json.js
to 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.