0.0.3-alpha • Published 2 years ago

cra-template-maciek v0.0.3-alpha

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

cra-template-maciek

npm

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 using simple-import-sort plugin
  • npm run sort - will sort your package.json and remove redundant eslintConfig property since it's now in a separate file. Check scripts/sort-package-json.js to see how it's done

More information