2.3.0 • Published 3 years ago

cra-template-default-optimized-js v2.3.0

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

CRA Template Default Optimized Javascript

Optimized Default CRA Template with Popular Basic Packages, Types, Opinionated Linters, and Incorporated Prettier

Default basic Create React App (CRA) template that includes:

Basic Popular Packages:

  • Lodash
  • Axios
  • Date-fns
  • Eslint
  • Stylelint
  • Prettier
  • UUID
  • React Router Dom
  • Source Map Explorer
  • Testing Libraries
  • Web Vitals

Opinionated Javascript Linter based on:

  • Airbnb Style Guide
  • Import
  • Jest w/ Formatting and Dom
  • JSX-a11y
  • Lodash
  • You-Dont-Need-Lodash (prefers native js methods when possible)
  • Promises
  • React w/ Hooks
  • Security
  • Testing Library
  • Unicorn

Opinionated CSS Linter based on:

  • Recommended base config Stylelint
  • Standard config (Airbnb, Google, Idiomatic, @mdo), extended from Recommended
  • Primer config GitHub CSS Style Guide, extended from Standard
  • Block Ignored Properties add-on

Simple Common Scripts:

  • analyze: "source-map-explorer 'build/static/js/*.js'",
  • coverage: "npm test -- --coverage",
  • lint: "npx eslint 'src/*/.{js,ts,jsx,tsx}'",
  • lint:fix: "npm run lint -- --fix",
  • stylelint: "npx stylelint 'src/*/.{css,less,scss,sass}'",
  • stylelint:fix: "npm run stylelint -- --fix",

IDE's Types for:

  • Jest
  • Lodash
  • Node
  • React w/ Dom
  • React Router Dom
  • UUID

Usage

npx create-react-app your-project-name --template default-optimized-js

Or;

yarn create react-app your-project-name --template default-optimized-js

Cloning this repo pulls down the template only; not a bundled and configured Create React App.

For more information, please refer to: