Skip to content

Commit

Permalink
setup prettier for aws-lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
miquelbeltran committed Jun 4, 2024
1 parent 0d2f96a commit 52de242
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/aws-lambda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,3 @@ jobs:
working-directory: ./aws-lambda
- run: npm run eslint
working-directory: ./aws-lambda

# TODO: Setup eslint and prettier for AWS Lambda project
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ jobs:
# "dry" causes that if any file is modified, the job fails
dry: True
# "write" performs changes in place
prettier_options: --write lib/*.ts test/*.js examples/**/*.js
prettier_options: --write lib/*.ts test/*.js examples/**/*.js aws-lambda/lib/*.ts aws-lambda/test/*.js
github_token: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
17 changes: 17 additions & 0 deletions aws-lambda/package-lock.json

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

5 changes: 4 additions & 1 deletion aws-lambda/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
"main": "build/raygun.aws.js",
"types": "build/raygun.aws.d.ts",
"scripts": {
"//eslint": "performs static analysis over project files and examples",
"//eslint": "performs static analysis over project files",
"eslint": "eslint --fix lib/*.ts test/*.js",
"//prettier": "performs code formatting over project files",
"prettier": "prettier --write lib/*.ts test/*.js",
"//prepare": "prepare project for distribution",
"prepare": "tsc",
"//test": "runs tests on main project",
Expand All @@ -18,6 +20,7 @@
"@stylistic/eslint-plugin-ts": "^2.0.0",
"@types/node": "^20.12.8",
"eslint": "^8.57.0",
"prettier": "^3.2.5",
"tap": "^19.0.2",
"ts-node": "^10.9.2",
"typescript": "^5.4.5"
Expand Down

0 comments on commit 52de242

Please sign in to comment.