@hs-web-team/eslint-config-node 3.0.0-next.11 → 3.0.0-next.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +8 -2
  2. package/package.json +4 -4
package/index.js CHANGED
@@ -60,10 +60,16 @@ export default [
60
60
  },
61
61
  rules: baseRules,
62
62
  },
63
- // TypeScript config that extends the base config
64
- ...tseslint.configs.recommended,
63
+ // TypeScript config - restrict to TypeScript files only
64
+ ...tseslint.configs.recommended.map(config => ({
65
+ ...config,
66
+ files: ['**/*.{ts,mts,cts,tsx}'],
67
+ })),
65
68
  {
66
69
  files: ['**/*.{ts,mts,cts,tsx}'],
70
+ languageOptions: {
71
+ globals: {...globals.node, ...globals.es2022, ...globals.jest},
72
+ },
67
73
  rules: baseRules,
68
74
  },
69
75
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hs-web-team/eslint-config-node",
3
- "version": "3.0.0-next.11",
3
+ "version": "3.0.0-next.13",
4
4
  "description": "HubSpot Marketing WebTeam ESLint rules for Node.js",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "homepage": "https://github.com/HubSpotWebTeam/wt-eslint-node#readme",
30
30
  "dependencies": {
31
- "@eslint/eslintrc": "^3.3.1",
31
+ "@eslint/eslintrc": "^3.3.3",
32
32
  "@eslint/js": "^9.39.1",
33
33
  "@typescript-eslint/eslint-plugin": "^8.46.3",
34
34
  "@typescript-eslint/parser": "^8.46.3",
@@ -36,7 +36,7 @@
36
36
  "eslint-formatter-checkstyle": "^9.0.1",
37
37
  "globals": "^16.5.0",
38
38
  "jiti": "^2.6.1",
39
- "prettier": "^3.6.2",
40
- "typescript-eslint": "^8.46.3"
39
+ "prettier": "^3.7.3",
40
+ "typescript-eslint": "^8.48.0"
41
41
  }
42
42
  }