Skip to content

Instantly share code, notes, and snippets.

@arayaryoma
Created December 11, 2019 07:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arayaryoma/65157541fc889447337a018bf4a17532 to your computer and use it in GitHub Desktop.
Save arayaryoma/65157541fc889447337a018bf4a17532 to your computer and use it in GitHub Desktop.
Bash script to initialize a Node.js project with TypeScript, eslint and prettier
#!/bin/bash
yarn init -y
yarn add -D typescript prettier eslint @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-config-prettier eslint-plugin-prettier
curl -slw "\n" https://www.gitignore.io/api/node,macos,windows,linux >> .gitignore
tsc --init
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment