Skip to content

Commit 8bc38b5

Browse files
authored
Merge pull request #9565 from guardian/sndrs/remove-yarn@1-pt3
2 parents bc01e8f + 94761fa commit 8bc38b5

File tree

6 files changed

+18
-22
lines changed

6 files changed

+18
-22
lines changed

dotcom-rendering/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,13 @@ We recommend you update your workspace settings to automatically fix formatting
191191
>Preferences: Open Settings (JSON)
192192
```
193193
194-
2. Add the key value `"tslint.autoFixOnSave": true,`
194+
2. Add the following:
195+
196+
```
197+
"editor.codeActionsOnSave": {
198+
"source.fixAll.eslint": true
199+
}
200+
```
195201
196202
If you prefer not to use an editor like VSCode then you can use the following commands to manage formatting and (try to fix) linting errors:
197203

dotcom-rendering/docs/contributing/code-style.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
## TypeScript
2222

23-
We use TSlint and [Prettier](https://prettier.io/) to enforce our TypeScript code style.
23+
We use ESlint and [Prettier](https://prettier.io/) to enforce our TypeScript code style.
2424
Running `make fix` after making any changes will fix most things.
2525

2626
There are some styles the linter can't pick up. If you are unsure of anything, [Excel Micro's fork of AirBnB's style

dotcom-rendering/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@
139139
"@types/yarnpkg__lockfile": "1.1.6",
140140
"@types/youtube": "0.0.47",
141141
"@typescript-eslint/eslint-plugin": "5.61.0",
142-
"@typescript-eslint/eslint-plugin-tslint": "5.61.0",
143142
"@typescript-eslint/parser": "5.61.0",
144143
"@yarnpkg/lockfile": "1.1.0",
145144
"ajv": "8.12.0",
@@ -250,8 +249,9 @@
250249
"trusted-types": "2.0.0",
251250
"ts-loader": "9.4.3",
252251
"ts-unused-exports": "8.0.5",
253-
"tslib": "2.5.3",
252+
"tslib": "2.6.2",
254253
"type-fest": "4.6.0",
254+
"typescript": "5.1.3",
255255
"typescript-json-schema": "0.58.1",
256256
"unified": "10.1.2",
257257
"uuid": "9.0.1",

dotcom-rendering/src/components/Discussion/Dropdown.stories.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,10 @@ const optionsWithNoneActive = [
8282
{ ...threadOptions[2] },
8383
];
8484

85-
/* tslint:disable */
8685
export default {
8786
component: Dropdown,
8887
title: 'Discussion/Dropdown',
8988
};
90-
/* tslint:enable */
9189

9290
export const DropdownActive = () => (
9391
<Container>

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@
4141
"lint-staged": "13.2.1",
4242
"npm-run-all": "^4.1.5",
4343
"prettier": "3.0.3",
44-
"tslib": "2.5.3",
45-
"typescript": "5.1.3"
44+
"tslib": "2.6.2"
4645
},
4746
"resolutions": {
4847
"**/crypto-js": "4.2.0"

yarn.lock

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@
869869
json5 "^2.2.2"
870870
semver "^6.3.0"
871871

872-
"@babel/core@^7.21.3", "@babel/core@^7.23.2":
872+
"@babel/core@^7.16.7", "@babel/core@^7.21.3":
873873
version "7.23.3"
874874
resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.23.3.tgz#5ec09c8803b91f51cc887dedc2654a35852849c9"
875875
integrity sha512-Jg+msLuNuCJDyBvFv5+OKOUjWMZgd85bKjbICd3zWrKAo+bJ49HJufi7CQE0q0uR8NGyO6xkCACScNqyjHSZew==
@@ -6978,13 +6978,6 @@
69786978
resolved "https://registry.yarnpkg.com/@types/youtube/-/youtube-0.0.47.tgz#b6e24385ef3b8a6c972d7316d93e8e27c12d0e7c"
69796979
integrity sha512-uwqm0DUeg+2pff/8y9b22JJb+qWKOcG5aCn2yyT7hmLdK/M8+VECcK6QuNqdAR93IAqTmZeqK2nizTlQg5j+XA==
69806980

6981-
"@typescript-eslint/[email protected]":
6982-
version "5.61.0"
6983-
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin-tslint/-/eslint-plugin-tslint-5.61.0.tgz#122d1eb3349cafebd656b8dd14585e29190013f3"
6984-
integrity sha512-jfcNlcn1YyLlyETaNDOu6QAXpRu1/08ZYLebntf8BvqFfLEIODWB2/BI8JQKZhib4uML/72UrVFl/hvfVgr1FQ==
6985-
dependencies:
6986-
"@typescript-eslint/utils" "5.61.0"
6987-
69886981
"@typescript-eslint/[email protected]":
69896982
version "5.46.1"
69906983
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.46.1.tgz#098abb4c9354e19f460d57ab18bff1f676a6cff0"
@@ -9336,7 +9329,7 @@ cross-spawn@^7.0.0, cross-spawn@^7.0.2, cross-spawn@^7.0.3:
93369329
shebang-command "^2.0.0"
93379330
which "^2.0.1"
93389331

9339-
[email protected], crypto-js@^4.2.0:
9332+
[email protected], crypto-js@^3.3.0:
93409333
version "4.2.0"
93419334
resolved "https://registry.yarnpkg.com/crypto-js/-/crypto-js-4.2.0.tgz#4d931639ecdfd12ff80e8186dba6af2c2e856631"
93429335
integrity sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q==
@@ -15627,7 +15620,7 @@ prebid.js@guardian/prebid.js#0b4cccd55ab4e170b36bb944e9bdd2807a9da1c5:
1562715620
version "7.54.5"
1562815621
resolved "https://codeload.github.com/guardian/prebid.js/tar.gz/0b4cccd55ab4e170b36bb944e9bdd2807a9da1c5"
1562915622
dependencies:
15630-
"@babel/core" "^7.23.2"
15623+
"@babel/core" "^7.16.7"
1563115624
"@babel/plugin-transform-runtime" "^7.18.9"
1563215625
"@babel/preset-env" "^7.16.8"
1563315626
"@babel/runtime" "^7.18.9"
@@ -17934,10 +17927,10 @@ tsconfig-paths@^3.14.1, tsconfig-paths@^3.9.0:
1793417927
minimist "^1.2.6"
1793517928
strip-bom "^3.0.0"
1793617929

17937-
tslib@2.5.3:
17938-
version "2.5.3"
17939-
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.5.3.tgz#24944ba2d990940e6e982c4bea147aba80209913"
17940-
integrity sha512-mSxlJJwl3BMEQCUNnxXBU9jP4JBktcEGhURcPR6VQVlnP0FdDEsIaz0C35dXNGLyRfrATNofF0F5p2KPxQgB+w==
17930+
tslib@2.6.2:
17931+
version "2.6.2"
17932+
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.2.tgz#703ac29425e7b37cd6fd456e92404d46d1f3e4ae"
17933+
integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==
1794117934

1794217935
tslib@^1.11.1, tslib@^1.13.0, tslib@^1.8.1:
1794317936
version "1.14.1"

0 commit comments

Comments
 (0)