1.1.0 ⢠Published 4 years ago
cra-template-kd974-basic v1.1.0
A personnal cra-template based
Front-end Exclusively
Install ReactJS with some additionals packages
Eslint is configured on preset airbnb with 3 rules in "warn"
Custom Readme
Work this NodeJs >= 12
Additionals Dependencies Packages:
šø ć REACT-ROUTER-DOM latest ć
Additionals Dev Dependency Package:
šø ć PRETTIER latest ć šø ć ESLINT latest ć - And Co'
You can activate Preflight if Eslint not work with your current install
Its allow Eslint to work with your current ReactApp.
You can find it in .env, this line :
Uncomment and reboot the app.
SKIP_PREFLIGHT_CHECK=trueEslint configuration:
šø Preset: airbnb
3 rules in "warn":
- react/prop-types
- react/function-component-definition
- no-console
Jsconfig
šø I've created a configurated jsconfig.json for this project who work fine with Visual Studio Code.
So, use it if you want !
Be sure to use the right command at installation:
NPX
npx create-react-app my-app --template kd974-basicNPM
npm init react-app my-app --template kd974-basicYARN
yarn create react-app my-app --template kd974-basicPNPM
pnpm create react-app my-app --template kd974-basic
After installing, launch this command to fix potential error with eslint (not required)
These command fix eslint to work with prettier. I don't know why its required but you can't use this template without doing this if you have the error: "prettier/prettier" Use this only if you have this error.
NPM
npm update -R eslintYARN
yarn update -R eslint
Back to Top
For more information, please refer to:
- Getting Started ā How to create a new app.
- User Guide ā How to develop apps bootstrapped with Create React App.
- Default Template ā Template installed if no template option passed.
- Cra-Template ā Used in the official Create React App