Skip to content

Commit 546b4c4

Browse files
authored
Update dependencies (#374)
* Update nodejs.yml * Updated eslint * npm audit fix
1 parent 36a2228 commit 546b4c4

7 files changed

Lines changed: 350 additions & 776 deletions

File tree

.github/workflows/nodejs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Node.js build
22

33
on:
44
push:
5-
branches: [ main, live ]
5+
branches: [ main ]
66
pull_request:
7-
branches: [ main, live ]
7+
branches: [ main ]
88
workflow_dispatch:
99

1010
jobs:
@@ -17,7 +17,7 @@ jobs:
1717

1818
strategy:
1919
matrix:
20-
node-version: [ 18.x, 20.x ]
20+
node-version: [ 20.x, 22.x, 24.x ]
2121

2222
steps:
2323
- uses: actions/checkout@v3
@@ -42,7 +42,7 @@ jobs:
4242

4343
strategy:
4444
matrix:
45-
node-version: [ 18.x, 20.x ]
45+
node-version: [ 20.x, 22.x, 24.x ]
4646

4747
steps:
4848
- uses: actions/checkout@v3
Lines changed: 32 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,42 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT license.
33

4-
import globals from 'globals';
5-
import js from '@eslint/js';
6-
import eslintPluginPrettier from 'eslint-plugin-prettier';
4+
// cSpell:ignore ganchev
5+
6+
import { defineConfig } from 'eslint/config';
7+
78
import eslintPrettierRecommended from 'eslint-plugin-prettier/recommended';
8-
import header from 'eslint-plugin-header';
9-
header.rules.header.meta.schema = false;
9+
import header from '@tony.ganchev/eslint-plugin-header';
1010

11-
export default [
12-
js.configs.recommended,
13-
eslintPrettierRecommended,
14-
{
15-
languageOptions: {
16-
globals: {
17-
...globals.commonjs,
18-
...globals.node,
19-
},
11+
export default defineConfig(eslintPrettierRecommended, {
12+
files: ['**/**.js'],
2013

21-
ecmaVersion: 'latest',
22-
sourceType: 'module',
23-
},
14+
languageOptions: {
15+
ecmaVersion: 'latest',
16+
sourceType: 'module',
17+
},
2418

25-
plugins: {
26-
header,
27-
eslintPluginPrettier,
28-
},
19+
plugins: {
20+
header,
21+
},
2922

30-
rules: {
31-
'header/header': [
32-
'error',
33-
'line',
34-
[
35-
' Copyright (c) Microsoft Corporation.',
36-
' Licensed under the MIT license.',
37-
],
38-
],
39-
'prettier/prettier': [
40-
'error',
41-
{
42-
singleQuote: true,
43-
endOfLine: 'auto',
44-
printWidth: 80,
45-
},
23+
rules: {
24+
'header/header': [
25+
'error',
26+
'line',
27+
[
28+
' Copyright (c) Microsoft Corporation.',
29+
' Licensed under the MIT license.',
4630
],
47-
},
31+
2,
32+
],
33+
'prettier/prettier': [
34+
'error',
35+
{
36+
singleQuote: true,
37+
endOfLine: 'auto',
38+
printWidth: 80,
39+
},
40+
],
4841
},
49-
];
42+
});

0 commit comments

Comments
 (0)