Skip to content

Commit 636278c

Browse files
authored
Update to Node 20 and prettier fix (#131)
* update to node 20 Signed-off-by: Jens Reinecke <[email protected]> * fix lint/prettier Signed-off-by: Jens Reinecke <[email protected]> * fix lint errors in Memory Browser Signed-off-by: Jens Reinecke <[email protected]> --------- Signed-off-by: Jens Reinecke <[email protected]>
1 parent 604ead5 commit 636278c

File tree

4 files changed

+23
-10
lines changed

4 files changed

+23
-10
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
fetch-depth: 0
2222
- uses: actions/setup-node@v3
2323
with:
24-
node-version: 14.x
24+
node-version: 20.x
2525
- name: Build
2626
run: |
2727
yarn install --ignore-scripts
@@ -61,7 +61,7 @@ jobs:
6161
path: artifacts
6262
- uses: actions/setup-node@v3
6363
with:
64-
node-version: 14.x
64+
node-version: 20.x
6565
- name: Publish
6666
run: |
6767
npx ovsx publish -i artifacts/*/*.vsix -p ${{secrets.OPEN_VSX_TOKEN}}
@@ -78,7 +78,7 @@ jobs:
7878
path: artifacts
7979
- uses: actions/setup-node@v3
8080
with:
81-
node-version: 14.x
81+
node-version: 20.x
8282
- name: Publish
8383
run: |
8484
npx vsce publish -i artifacts/*/*.vsix -p ${{secrets.VS_MARKETPLACE_TOKEN}}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@
745745
"devDependencies": {
746746
"@types/chai": "^4.3.4",
747747
"@types/mocha": "^9.1.0",
748-
"@types/node": "^14.18.17",
748+
"@types/node": "~20.14.15",
749749
"@types/react": "^17.0.38",
750750
"@types/react-dom": "^17.0.11",
751751
"@types/vscode": "^1.78.0",
@@ -756,6 +756,7 @@
756756
"esbuild": "^0.19.2",
757757
"esbuild-sass-plugin": "^2.13.0",
758758
"eslint": "^8.35.0",
759+
"eslint-config-prettier": "^8.6.0",
759760
"event-stream": "^4.0.1",
760761
"npm-run-all": "^4.1.5",
761762
"prettier": "2.8.4",

src/memory/client/MemoryBrowser.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export class MemoryBrowser extends React.Component<Props, State> {
8484
private addressReq = '';
8585
private lengthReq = '512';
8686
private childReq = 0;
87-
public static firstTime: boolean = true;
87+
public static firstTime = true;
8888

8989
constructor(props: Props) {
9090
super(props);
@@ -356,7 +356,7 @@ export class MemoryBrowser extends React.Component<Props, State> {
356356
MemoryBrowser.firstTime = false;
357357
}
358358
const { childrenNames } = this.state;
359-
let childrenNamesList =
359+
const childrenNamesList =
360360
childrenNames.length > 0 &&
361361
childrenNames.map((item, i) => {
362362
return (

yarn.lock

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -401,10 +401,12 @@
401401
resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-9.1.1.tgz#e7c4f1001eefa4b8afbd1eee27a237fee3bf29c4"
402402
integrity sha512-Z61JK7DKDtdKTWwLeElSEBcWGRLY8g95ic5FoQqI9CMx0ns/Ghep3B4DfcEimiKMvtamNVULVNKEsiwV3aQmXw==
403403

404-
"@types/node@^14.18.17":
405-
version "14.18.37"
406-
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.18.37.tgz#0bfcd173e8e1e328337473a8317e37b3b14fd30d"
407-
integrity sha512-7GgtHCs/QZrBrDzgIJnQtuSvhFSwhyYSI2uafSwZoNt1iOGhEN5fwNrQMjtONyHm9+/LoA4453jH0CMYcr06Pg==
404+
"@types/node@~20.14.15":
405+
version "20.14.15"
406+
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.14.15.tgz#e59477ab7bc7db1f80c85540bfd192a0becc588b"
407+
integrity sha512-Fz1xDMCF/B00/tYSVMlmK7hVeLh7jE5f3B7X1/hmV0MJBwE27KlS7EvD/Yp+z1lm8mVhwV5w+n8jOZG8AfTlKw==
408+
dependencies:
409+
undici-types "~5.26.4"
408410

409411
"@types/prop-types@*":
410412
version "15.7.5"
@@ -1253,6 +1255,11 @@ escape-string-regexp@^4.0.0:
12531255
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34"
12541256
integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==
12551257

1258+
eslint-config-prettier@^8.6.0:
1259+
version "8.10.0"
1260+
resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-8.10.0.tgz#3a06a662130807e2502fc3ff8b4143d8a0658e11"
1261+
integrity sha512-SM8AMJdeQqRYT9O9zguiruQZaN7+z+E4eAP9oiLNGKMtomwaB1E9dcgUD6ZAn/eQAb52USbvezbiljfZUhbJcg==
1262+
12561263
eslint-scope@^5.1.1:
12571264
version "5.1.1"
12581265
resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c"
@@ -3072,6 +3079,11 @@ underscore@^1.12.1:
30723079
resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.13.6.tgz#04786a1f589dc6c09f761fc5f45b89e935136441"
30733080
integrity sha512-+A5Sja4HP1M08MaXya7p5LvjuM7K6q/2EaC0+iovj/wOcMsTzMvDFbasi/oSapiwOlt252IqsKqPjCl7huKS0A==
30743081

3082+
undici-types@~5.26.4:
3083+
version "5.26.5"
3084+
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617"
3085+
integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==
3086+
30753087
uri-js@^4.2.2:
30763088
version "4.4.1"
30773089
resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e"

0 commit comments

Comments
 (0)