cra-template-maciek

0.0.3-alpha • Public • Published

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

Package Sidebar

Install

npm i cra-template-maciek

Weekly Downloads

2

Version

0.0.3-alpha

License

MIT

Unpacked Size

29.6 kB

Total Files

19

Last publish

Collaborators

  • sitek94