Skip to content

Commit ef5c981

Browse files
Copilotstuartp44
andcommitted
fix: apply prettier formatting fixes
Fix formatting issues identified by prettier: - Remove trailing whitespace in scale-up.test.ts - Format .prettierrc and eslint.config.js - Format various tsconfig.json and other config files Co-authored-by: stuartp44 <1926002+stuartp44@users.noreply.github.com>
1 parent dd365f1 commit ef5c981

File tree

17 files changed

+37
-98
lines changed

17 files changed

+37
-98
lines changed

lambdas/.prettierrc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,5 @@
55
"semi": true,
66
"importOrderSeparation": true,
77
"importOrderSortSpecifiers": true,
8-
"importOrder": [
9-
"<THIRD_PARTY_MODULES>",
10-
"^[./]"
11-
]
8+
"importOrder": ["<THIRD_PARTY_MODULES>", "^[./]"]
129
}

lambdas/eslint.config.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ const compat = new FlatCompat({
1414
// Create the ESLint 9.x flat config
1515
module.exports = [
1616
js.configs.recommended,
17-
...compat.extends(
18-
'plugin:@typescript-eslint/recommended'
19-
),
17+
...compat.extends('plugin:@typescript-eslint/recommended'),
2018
{
2119
// Global linting settings
2220
languageOptions: {
@@ -28,7 +26,7 @@ module.exports = [
2826
},
2927
plugins: {
3028
'@typescript-eslint': require('@typescript-eslint/eslint-plugin'),
31-
'prettier': require('eslint-plugin-prettier'),
29+
prettier: require('eslint-plugin-prettier'),
3230
},
3331
rules: {
3432
'prettier/prettier': 'error',
@@ -39,4 +37,3 @@ module.exports = [
3937
ignores: ['**/node_modules/**', '**/dist/**', '**/.nx/**', '**/coverage/**'],
4038
},
4139
];
42-
Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
{
2-
"extends" : "../../tsconfig.json",
3-
"include": [
4-
"src/**/*"
5-
],
6-
"exclude": [
7-
"src/**/*.test.ts"
8-
]
2+
"extends": "../../tsconfig.json",
3+
"include": ["src/**/*"],
4+
"exclude": ["src/**/*.test.ts"]
95
}

lambdas/functions/control-plane/src/scale-runners/scale-up.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1760,7 +1760,7 @@ describe('Retry mechanism tests', () => {
17601760
// publishRetryMessage should NOT be called because messages are marked as invalid
17611761
// Invalid messages go back to the SQS queue and will be retried there
17621762
expect(mockPublishRetryMessage).not.toHaveBeenCalled();
1763-
1763+
17641764
// Verify listEC2Runners is called to check current runner count
17651765
expect(listEC2Runners).toHaveBeenCalledWith({
17661766
environment: 'unit-test-environment',
Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
{
2-
"extends" : "../../tsconfig.json",
3-
"include": [
4-
"src/**/*"
5-
],
6-
"exclude": [
7-
"src/**/*.test.ts"
8-
]
2+
"extends": "../../tsconfig.json",
3+
"include": ["src/**/*"],
4+
"exclude": ["src/**/*.test.ts"]
95
}
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
{
22
"extends": "./tsconfig.json",
3-
"exclude": [
4-
"**/*.test.ts",
5-
"**/__mocks__",
6-
"**/__tests__"
7-
]
3+
"exclude": ["**/*.test.ts", "**/__mocks__", "**/__tests__"]
84
}
Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
{
2-
"extends" : "../../tsconfig.json",
3-
"include": [
4-
"src/**/*"
5-
],
6-
"exclude": [
7-
"src/**/*.test.ts"
8-
]
2+
"extends": "../../tsconfig.json",
3+
"include": ["src/**/*"],
4+
"exclude": ["src/**/*.test.ts"]
95
}
Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
{
2-
"extends" : "../../tsconfig.json",
3-
"include": [
4-
"src/**/*"
5-
],
6-
"exclude": [
7-
"src/**/*.test.ts"
8-
]
2+
"extends": "../../tsconfig.json",
3+
"include": ["src/**/*"],
4+
"exclude": ["src/**/*.test.ts"]
95
}

lambdas/functions/webhook/test/resources/github_check_run_event.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,4 +306,4 @@
306306
"id": 12345,
307307
"node_id": "MDweasdludGVaswefasSW5zdGFsbGF0aW9asdfaY0NTI2OQ=="
308308
}
309-
}
309+
}

lambdas/functions/webhook/test/resources/github_workflowjob_event.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
"name": "build",
1616
"steps": [],
1717
"check_run_url": "https://api.github.com/repos/github-aws-runners/terraform-aws-github-runner/check-runs/3169272040",
18-
"labels": [
19-
"self-hosted"
20-
]
18+
"labels": ["self-hosted"]
2119
},
2220
"repository": {
2321
"id": 258465213,

0 commit comments

Comments
 (0)