Skip to content

Commit 36206b4

Browse files
fix: prettier change
1 parent bfccf54 commit 36206b4

File tree

97 files changed

+1208
-1206
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+1208
-1206
lines changed

.github/workflows/common-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- uses: actions/setup-node@v4
2121
with:
2222
node-version: ${{ env.node_version }}
23-
cache: "npm"
23+
cache: 'npm'
2424
- name: Install NPM dependencies
2525
run: npm ci
2626
- name: Typecheck
@@ -45,7 +45,7 @@ jobs:
4545
uses: actions/setup-node@v4
4646
with:
4747
node-version: ${{ env.node_version }}
48-
registry-url: "https://registry.npmjs.org"
48+
registry-url: 'https://registry.npmjs.org'
4949
- name: Install dependencies
5050
run: npm ci
5151
- name: Typecheck

.github/workflows/common-test.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Common CI tests
22

3-
run-name: "Test: mode=${{ inputs.mode }}, testMonorepo=${{ inputs.testMonorepo }}"
3+
run-name: 'Test: mode=${{ inputs.mode }}, testMonorepo=${{ inputs.testMonorepo }}'
44

55
on:
66
workflow_call:
@@ -10,7 +10,7 @@ on:
1010
type: string
1111
required: true
1212
testMonorepo:
13-
description: "Test monorepo by specifying folder in config"
13+
description: 'Test monorepo by specifying folder in config'
1414
type: string
1515
required: true
1616

@@ -35,7 +35,7 @@ jobs:
3535
uses: actions/setup-node@v4
3636
with:
3737
node-version: ${{ env.node_version }}
38-
registry-url: "https://registry.npmjs.org"
38+
registry-url: 'https://registry.npmjs.org'
3939
- name: Install dependencies
4040
run: npm ci
4141
- name: Download build artifact
@@ -82,7 +82,7 @@ jobs:
8282
uses: actions/setup-node@v4
8383
with:
8484
node-version: ${{ env.node_version }}
85-
registry-url: "https://registry.npmjs.org"
85+
registry-url: 'https://registry.npmjs.org'
8686
- name: Install dependencies
8787
run: npm ci
8888
- name: Download build artifact
@@ -130,7 +130,7 @@ jobs:
130130
uses: actions/setup-node@v4
131131
with:
132132
node-version: ${{ env.node_version }}
133-
registry-url: "https://registry.npmjs.org"
133+
registry-url: 'https://registry.npmjs.org'
134134
- name: Install dependencies
135135
run: npm ci
136136
- name: Download build artifact
@@ -178,7 +178,7 @@ jobs:
178178
uses: actions/setup-node@v4
179179
with:
180180
node-version: ${{ env.node_version }}
181-
registry-url: "https://registry.npmjs.org"
181+
registry-url: 'https://registry.npmjs.org'
182182
- name: Install dependencies
183183
run: npm ci
184184
- name: Download build artifact
@@ -230,7 +230,7 @@ jobs:
230230
uses: actions/setup-node@v4
231231
with:
232232
node-version: ${{ env.node_version }}
233-
registry-url: "https://registry.npmjs.org"
233+
registry-url: 'https://registry.npmjs.org'
234234
- name: Install dependencies
235235
run: npm ci
236236
- name: Download build artifact
@@ -277,7 +277,7 @@ jobs:
277277
uses: actions/setup-node@v4
278278
with:
279279
node-version: ${{ env.node_version }}
280-
registry-url: "https://registry.npmjs.org"
280+
registry-url: 'https://registry.npmjs.org'
281281
- name: Install dependencies
282282
run: npm ci
283283
- name: Download build artifact

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
uses: actions/setup-node@v4
3737
with:
3838
node-version: ${{ env.node_version }}
39-
registry-url: "https://registry.npmjs.org"
39+
registry-url: 'https://registry.npmjs.org'
4040
- name: Install dependencies
4141
run: npm ci
4242
- uses: actions/download-artifact@v4

.github/workflows/test-with-real-npm.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Test with real npm
22

3-
run-name: "Test with real npm: mode=${{ inputs.mode }}, testMonorepo=${{ inputs.testMonorepo }}"
3+
run-name: 'Test with real npm: mode=${{ inputs.mode }}, testMonorepo=${{ inputs.testMonorepo }}'
44

55
on:
66
workflow_dispatch:
@@ -13,7 +13,7 @@ on:
1313
- global
1414
- local
1515
testMonorepo:
16-
description: "Test monorepo by specifying folder in config"
16+
description: 'Test monorepo by specifying folder in config'
1717
type: boolean
1818
default: false
1919

.github/workflows/update-npm-packages.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Update NPM Packages
22

33
on:
44
schedule:
5-
- cron: "0 0 * * 0"
5+
- cron: '0 0 * * 0'
66
workflow_dispatch:
77

88
env:
@@ -19,7 +19,7 @@ jobs:
1919
- uses: actions/setup-node@v4
2020
with:
2121
node-version: ${{ env.node_version }}
22-
cache: "npm"
22+
cache: 'npm'
2323

2424
- name: Install npm-check-updates
2525
run: npm install -g npm-check-updates
@@ -47,10 +47,10 @@ jobs:
4747
uses: peter-evans/create-pull-request@v6
4848
with:
4949
token: ${{ secrets.PRIVATE_GITHUB_TOKEN }}
50-
commit-message: "fix: Update dependencies"
51-
title: "fix: Update NPM dependencies"
52-
body: "This is an auto-generated PR with dependency updates."
53-
branch: "fix/update-dependencies"
50+
commit-message: 'fix: Update dependencies'
51+
title: 'fix: Update NPM dependencies'
52+
body: 'This is an auto-generated PR with dependency updates.'
53+
branch: 'fix/update-dependencies'
5454
delete-branch: true
5555

5656
- name: Check output

.prettierrc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
{}
1+
{
2+
"singleQuote": true
3+
}

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,12 @@ The configuration is saved to `lldebugger.config.ts`.
129129
Example `lldebugger.config.ts`:
130130

131131
```typescript
132-
import { type LldConfigTs } from "lambda-live-debugger";
132+
import { type LldConfigTs } from 'lambda-live-debugger';
133133

134134
export default {
135-
framework: "cdk",
136-
context: ["environment=development"],
137-
region: "eu-central-1",
135+
framework: 'cdk',
136+
context: ['environment=development'],
137+
region: 'eu-central-1',
138138
observable: false,
139139
verbose: false,
140140
//getLambdas: async (foundLambdas) => {

cloudformation/gitHubDeployRole.yaml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
AWSTemplateFormatVersion: "2010-09-09"
1+
AWSTemplateFormatVersion: '2010-09-09'
22
Description: IAM Role for GitHub Actions
33

44
Resources:
@@ -16,21 +16,21 @@ Resources:
1616
Properties:
1717
RoleName: lld-deploy-role
1818
AssumeRolePolicyDocument:
19-
Version: "2012-10-17"
19+
Version: '2012-10-17'
2020
Statement:
2121
- Effect: Allow
2222
Principal:
2323
Federated: !Ref GithubOIDCProvider
2424
Action: sts:AssumeRoleWithWebIdentity
2525
Condition:
2626
StringEquals:
27-
token.actions.githubusercontent.com:aud: "sts.amazonaws.com"
27+
token.actions.githubusercontent.com:aud: 'sts.amazonaws.com'
2828
StringLike:
29-
token.actions.githubusercontent.com:sub: "repo:ServerlessLife/lambda-live-debugger:*"
29+
token.actions.githubusercontent.com:sub: 'repo:ServerlessLife/lambda-live-debugger:*'
3030
Policies:
3131
- PolicyName: CloudFormationDeploy
3232
PolicyDocument:
33-
Version: "2012-10-17"
33+
Version: '2012-10-17'
3434
Statement:
3535
- Effect: Allow
3636
Action:
@@ -48,7 +48,7 @@ Resources:
4848

4949
- PolicyName: CDKBootstrapPolicy
5050
PolicyDocument:
51-
Version: "2012-10-17"
51+
Version: '2012-10-17'
5252
Statement:
5353
- Effect: Allow
5454
Action:
@@ -111,36 +111,36 @@ Resources:
111111
- Effect: Allow
112112
Action:
113113
- cloudwatch:PutRetentionPolicy
114-
Resource: "*"
114+
Resource: '*'
115115

116116
- PolicyName: SLSandSAMDeployPolicy
117117
PolicyDocument:
118-
Version: "2012-10-17"
118+
Version: '2012-10-17'
119119
Statement:
120120
- Effect: Allow
121121
Action:
122122
- s3:*
123-
Resource: "*"
123+
Resource: '*'
124124
- Effect: Allow
125125
Action:
126126
- cloudformation:*
127-
Resource: "*"
127+
Resource: '*'
128128
- Effect: Allow
129129
Action:
130130
- iam:*
131-
Resource: "*"
131+
Resource: '*'
132132
- Effect: Allow
133133
Action:
134134
- logs:*
135-
Resource: "*"
135+
Resource: '*'
136136
- Effect: Allow
137137
Action:
138138
- lambda:*
139-
Resource: "*"
139+
Resource: '*'
140140

141141
- PolicyName: IoTPermissionToRunDebugger
142142
PolicyDocument:
143-
Version: "2012-10-17"
143+
Version: '2012-10-17'
144144
Statement:
145145
- Effect: Allow
146146
Action:
@@ -150,11 +150,11 @@ Resources:
150150
- iot:Publish
151151
- iot:Receive
152152
Resource:
153-
- "*"
153+
- '*'
154154

155155
- PolicyName: RunLLDebugger
156156
PolicyDocument:
157-
Version: "2012-10-17"
157+
Version: '2012-10-17'
158158
Statement:
159159
- Effect: Allow
160160
Action:
@@ -166,19 +166,19 @@ Resources:
166166
- lambda:PublishLayerVersion
167167
- lambda:DeleteLayerVersion
168168
- lambda:ListLayers
169-
Resource: "*"
169+
Resource: '*'
170170
- Effect: Allow
171171
Action:
172172
- iam:PutRolePolicy
173173
- iam:GetRolePolicy
174174
- iam:DeleteRolePolicy
175-
Resource: "*"
175+
Resource: '*'
176176
- Effect: Allow
177177
Action:
178178
- cloudformation:DescribeStackResource
179-
Resource: "*"
179+
Resource: '*'
180180

181181
Outputs:
182182
GitHubActionsRoleArn:
183-
Description: "ARN of the GitHub Actions IAM Role"
183+
Description: 'ARN of the GitHub Actions IAM Role'
184184
Value: !GetAtt GitHubActionsRole.Arn

eslint.config.js

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
import globals from "globals";
2-
import pluginJs from "@eslint/js";
3-
import tseslint from "typescript-eslint";
4-
import pluginPrettier from "eslint-plugin-prettier";
5-
import prettierConfig from "eslint-config-prettier";
1+
import globals from 'globals';
2+
import pluginJs from '@eslint/js';
3+
import tseslint from 'typescript-eslint';
4+
import pluginPrettier from 'eslint-plugin-prettier';
5+
import prettierConfig from 'eslint-config-prettier';
66

77
export default [
8-
{ files: ["**/*.{js,mjs,cjs,ts}"] },
8+
{ files: ['**/*.{js,mjs,cjs,ts}'] },
99
{
1010
ignores: [
11-
"**/dist/**",
12-
"**/cdk.out/**",
13-
"**/.lldebugger/**",
14-
"**/.serverless/**",
15-
"**/.aws-sam/**",
16-
"src/extension/aws/*.js",
11+
'**/dist/**',
12+
'**/cdk.out/**',
13+
'**/.lldebugger/**',
14+
'**/.serverless/**',
15+
'**/.aws-sam/**',
16+
'src/extension/aws/*.js',
1717
],
1818
},
1919
{
2020
languageOptions: {
2121
globals: globals.node,
22-
parser: "@typescript-eslint/parser",
22+
parser: '@typescript-eslint/parser',
2323
parserOptions: {
24-
project: "./tsconfig.json",
24+
project: './tsconfig.json',
2525
},
2626
},
2727
},
@@ -33,10 +33,10 @@ export default [
3333
},
3434
rules: {
3535
...pluginPrettier.configs.recommended.rules,
36-
"@typescript-eslint/no-floating-promises": "error",
37-
"@typescript-eslint/no-explicit-any": "off",
38-
"@typescript-eslint/no-require-imports": "off",
39-
"@typescript-eslint/ban-ts-comment": "off",
36+
'@typescript-eslint/no-floating-promises': 'error',
37+
'@typescript-eslint/no-explicit-any': 'off',
38+
'@typescript-eslint/no-require-imports': 'off',
39+
'@typescript-eslint/ban-ts-comment': 'off',
4040
},
4141
},
4242
prettierConfig,

0 commit comments

Comments
 (0)