✨ Added default .prettierrc setup
This commit is contained in:
parent
24bfd1b0f2
commit
312265612f
1 changed files with 6 additions and 0 deletions
|
|
@ -78,6 +78,12 @@ if [ $numrepos -eq 0 ] ; then
|
|||
if [[ $confirmnpm == "y" || $confirmnpm == "yes" ]] ; then
|
||||
npm init -y
|
||||
npm install -D nodemon
|
||||
npm install -D prettier
|
||||
|
||||
# creates default .prettierrc
|
||||
echo -e 'trailingComma: "all"\ntabWidth: 4\nsemi: false\nsingleQuote: true\nbracketSpacing: true\narrowParens: "avoid"' > .prettierrc
|
||||
|
||||
# replace touch commands here with echo later on...
|
||||
touch index.html
|
||||
mkdir scripts
|
||||
mkdir styles
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue