eslint-plugin-stamhoofd 2.107.0 → 2.107.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-stamhoofd",
3
- "version": "2.107.0",
3
+ "version": "2.107.2",
4
4
  "main": "./src/index.js",
5
5
  "license": "UNLICENCED",
6
6
  "sideEffects": false,
@@ -17,8 +17,9 @@
17
17
  "eslint": "^9.11.1",
18
18
  "eslint-plugin-import": "^2.32.0",
19
19
  "eslint-plugin-jest": "^28.8.3",
20
+ "eslint-plugin-n": "^17.23.1",
20
21
  "eslint-plugin-vue": "^9.28.0",
21
22
  "typescript-eslint": "^8.7.0"
22
23
  },
23
- "gitHead": "54cbfe3b2fb090aa83c556be9eda97be712a9c71"
24
+ "gitHead": "33deb06a0bac15cc46fe141bc3dcf1dafb6e82a1"
24
25
  }
@@ -0,0 +1,16 @@
1
+
2
+ import nodePlugin from 'eslint-plugin-n'
3
+
4
+ export default [
5
+ {
6
+ plugins: {
7
+ n: nodePlugin
8
+ },
9
+ rules: {
10
+ "n/file-extension-in-import": [
11
+ "error",
12
+ "always"
13
+ ]
14
+ }
15
+ }
16
+ ]
package/src/index.js CHANGED
@@ -9,6 +9,8 @@ import frontend from './configs/frontend.js';
9
9
  import typescript from './configs/typescript.js';
10
10
  import defaultRules from './configs/default.js';
11
11
  import jest from 'eslint-plugin-jest'
12
+ import node from './configs/node.js';
13
+ import globals from "globals";
12
14
 
13
15
  const baseRules = [
14
16
  eslint.configs.recommended,
@@ -83,10 +85,19 @@ export default {
83
85
  ...frontend
84
86
  ],
85
87
  backend: [
86
- ...baseRules
88
+ {
89
+ languageOptions: {
90
+ globals: {
91
+ ...globals.node,
92
+ }
93
+ }
94
+ },
95
+ ...baseRules,
96
+ ...node
87
97
  ],
88
98
  shared: [
89
- ...baseRules
99
+ ...baseRules,
100
+ ...node
90
101
  ]
91
102
  },
92
103
  };