Skip to content

Commit 7bcbdbd

Browse files
authored
Update nodejs dependencies (#311)
## Description Updates packages to non-vulnerable ones. Also updates min node version to 18. We could bump to 20, but not much difference. ## Related Issue Audit. ## Type of Change <!-- Keep the applicable line(s), delete the rest --> - 🐛 Bug fix - 🔧 Config/build ## Checklist <!-- Delete the ones that do not apply to your changes --> - [ ] New tests added for new functionality (if applicable) - [X] Tested locally on Windows - [ ] Main [README.md](../README.md) updated (if applicable) - [ ] [docs/usage.md](../docs/usage.md) updated (if CLI commands changed) - [ ] [Language-specific guides](../docs/guides) updated (if applicable) - [ ] [Sample projects updated](../samples) to reflect changes (if applicable)
1 parent f985c3f commit 7bcbdbd

File tree

7 files changed

+229
-490
lines changed

7 files changed

+229
-490
lines changed

src/winapp-npm/eslint.config.mjs

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
import eslint from '@eslint/js';
2-
import tseslint from '@typescript-eslint/eslint-plugin';
3-
import tsparser from '@typescript-eslint/parser';
2+
import tseslint from 'typescript-eslint';
43
import globals from 'globals';
54
import prettier from 'eslint-config-prettier';
65

7-
export default [
6+
export default tseslint.config(
87
{
98
ignores: ['dist/**', 'bin/**', 'node_modules/**', 'examples/**', 'addon-template/**', 'cs-addon-template/**']
109
},
1110
eslint.configs.recommended,
1211
{
1312
files: ['src/**/*.ts'],
13+
extends: [...tseslint.configs.recommended],
1414
languageOptions: {
15-
parser: tsparser,
1615
parserOptions: {
1716
ecmaVersion: 2020,
1817
sourceType: 'module',
@@ -22,13 +21,7 @@ export default [
2221
...globals.node
2322
}
2423
},
25-
plugins: {
26-
'@typescript-eslint': tseslint
27-
},
2824
rules: {
29-
// TypeScript-specific rules
30-
...tseslint.configs.recommended.rules,
31-
3225
// Customize rules for this project
3326
'@typescript-eslint/no-unused-vars': ['error', {
3427
argsIgnorePattern: '^_',
@@ -49,4 +42,4 @@ export default [
4942
},
5043
// Prettier must be last to override conflicting rules
5144
prettier
52-
];
45+
);

0 commit comments

Comments
 (0)