Skip to content

Commit

Permalink
fix: add prettier and split files
Browse files Browse the repository at this point in the history
  • Loading branch information
SudharakaP committed Dec 10, 2023
1 parent 4275b78 commit e5b485c
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
add-to-cart.mjs filter=git-crypt diff=git-crypt
login.mjs filter=git-crypt diff=git-crypt
helpers/** filter=git-crypt diff=git-crypt
6 changes: 3 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
directory: '/'
schedule:
interval: "weekly"
open-pull-requests-limit: 10
interval: 'weekly'
open-pull-requests-limit: 10
2 changes: 1 addition & 1 deletion .github/workflows/booking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:

# Triggers the workflow through a webhook event
repository_dispatch:
types: [ booking ]
types: [booking]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand Down
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"trailingComma": "es5",
"tabWidth": 2,
"singleQuote": true
}
Binary file modified add-to-cart.mjs
Binary file not shown.
Binary file added helpers/captcha-solve.mjs
Binary file not shown.
Binary file added helpers/login.mjs
Binary file not shown.
Binary file removed login.mjs
Binary file not shown.
20 changes: 19 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,12 @@
"engines": {
"node": "18.x",
"npm": "9.x"
},
"devDependencies": {
"prettier": "3.1.0"
},
"scripts": {
"start": "node add-to-cart.mjs",
"prettier:write": "prettier --write ."
}
}

0 comments on commit e5b485c

Please sign in to comment.