Skip to content

Latest commit

 

History

History
25 lines (22 loc) · 1.19 KB

README.md

File metadata and controls

25 lines (22 loc) · 1.19 KB

Toy Train React 🚂 🚂 🚂

Faster toy React projects (with linting and formatting enabled)

Dependencies:

Scripts:

  • npm lint - Run prettier and eslint
  • npm run lint-check - Check for conflicts in eslint rules and prettier formatting
  • npm start -- -p 3000 - Starts app, optional flag to run on custom port e.g. port 3000. Otherwise, defaults to port 1234.

Suggested VSCode Settings:

Use the prettier-vscode extension and add the follow to your workspace settings:

{ 
  "editor.formatOnSave": true,
  "eslint.autoFixOnSave": true,
  "javascript.format.enable": false,
  "prettier.eslintIntegration": true
}

Read more about how these settings play together here.