Skip to content

Commit c1260a2

Browse files
authored
Merge pull request #1565 from guardian/aa/eslint
chore(deps): Update code quality dependencies
2 parents df6988d + 639d744 commit c1260a2

4 files changed

Lines changed: 1173 additions & 558 deletions

File tree

cdk/bin/cdk.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ new SloMonitoring(app, 'SloMonitor-PROD', {
5858
new SenderWorkerStack(app, 'SenderWorkerStack-CODE', {
5959
stack: 'mobile-notifications-workers',
6060
stage: 'CODE',
61-
cloudFormationStackName: 'notification-sender-workers-cdk-CODE'
61+
cloudFormationStackName: 'notification-sender-workers-cdk-CODE',
6262
});
6363

6464
new SenderWorkerStack(app, 'SenderWorkerStack-PROD', {

cdk/eslint.config.mjs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import guardian from '@guardian/eslint-config';
2+
import prettier from 'eslint-plugin-prettier';
3+
4+
export default [
5+
...guardian.configs.recommended,
6+
...guardian.configs.jest,
7+
{
8+
plugins: {
9+
prettier,
10+
},
11+
rules: {
12+
'prettier/prettier': 'error',
13+
},
14+
},
15+
];

cdk/package.json

Lines changed: 6 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,23 @@
77
"test": "jest",
88
"test-update": "jest -u",
99
"format": "prettier --write \"{lib,bin}/**/*.ts\"",
10-
"lint": "eslint lib/** bin/** --ext .ts --no-error-on-unmatched-pattern --ignore-pattern lib/__snapshots__",
10+
"lint": "eslint lib/** bin/** --no-error-on-unmatched-pattern",
1111
"synth": "cdk synth --path-metadata false --version-reporting false",
1212
"diff": "cdk diff --path-metadata false --version-reporting false"
1313
},
1414
"devDependencies": {
1515
"@guardian/cdk": "61.11.1",
16-
"@guardian/eslint-config-typescript": "3.0.0",
17-
"@guardian/prettier": "1.0.0",
16+
"@guardian/eslint-config": "12.0.1",
17+
"@guardian/prettier": "9.0.0",
1818
"@types/jest": "^29.5.14",
1919
"@types/node": "22.15.29",
2020
"aws-cdk": "2.1029.1",
2121
"aws-cdk-lib": "2.214.0",
2222
"constructs": "^10.4.2",
23-
"eslint": "^8.16.0",
23+
"eslint": "9.39.1",
24+
"eslint-plugin-prettier": "5.5.4",
2425
"jest": "^29.7",
25-
"prettier": "^2.7.0",
26+
"prettier": "3.6.2",
2627
"source-map-support": "^0.5.20",
2728
"ts-jest": "^29.3.4",
2829
"ts-node": "^10.9.2",
@@ -40,33 +41,5 @@
4041
"./jest.setup.js"
4142
]
4243
},
43-
"eslintConfig": {
44-
"root": true,
45-
"env": {
46-
"node": true,
47-
"jest": true
48-
},
49-
"extends": [
50-
"@guardian/eslint-config-typescript"
51-
],
52-
"parserOptions": {
53-
"ecmaVersion": 2020,
54-
"sourceType": "module"
55-
},
56-
"plugins": [
57-
"@typescript-eslint"
58-
],
59-
"rules": {
60-
"@typescript-eslint/no-inferrable-types": 0,
61-
"import/no-namespace": 2
62-
},
63-
"ignorePatterns": [
64-
"**/*.js",
65-
"node_modules",
66-
"cdk.out",
67-
".eslintrc.js",
68-
"jest.config.js"
69-
]
70-
},
7144
"packageManager": "yarn@4.12.0"
7245
}

0 commit comments

Comments
 (0)