eslint-config-skuba 8.0.0-subpath-imports-20250718065349 → 8.0.0-tsdown-package-templates-20251225102319

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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import type { Linter } from 'eslint';
1
+ import type { Config } from 'eslint/config';
2
2
 
3
- declare const config: Linter.Config;
3
+ declare const config: Config[];
4
4
 
5
5
  export = config;
package/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  const base = require('eslint-config-seek/base');
2
2
  const extensions = require('eslint-config-seek/extensions');
3
+ const skuba = require('eslint-plugin-skuba');
3
4
  const eslintPluginYml = require('eslint-plugin-yml');
4
5
  const tseslint = require('typescript-eslint');
5
6
 
@@ -14,7 +15,6 @@ module.exports = [
14
15
  ignores: [
15
16
  // Jest configuration files
16
17
  '**/jest.config*',
17
- '**/jest.setup*',
18
18
  ],
19
19
  })),
20
20
  {
@@ -107,6 +107,10 @@ module.exports = [
107
107
  ...config,
108
108
  files: [`**/*.{${tsExtensions}}`],
109
109
  })),
110
+ ...skuba.configs.recommended.map((config) => ({
111
+ ...config,
112
+ files: [`**/*.{${tsExtensions}}`],
113
+ })),
110
114
  {
111
115
  name: 'skuba/typescript',
112
116
  files: [`**/*.{${tsExtensions}}`],
@@ -181,6 +185,8 @@ module.exports = [
181
185
  checksVoidReturn: false,
182
186
  },
183
187
  ],
188
+
189
+ 'skuba/no-sync-in-promise-iterable': 'off',
184
190
  },
185
191
  },
186
192
  ...eslintPluginYml.configs['flat/prettier'].map((config) => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-skuba",
3
- "version": "8.0.0-subpath-imports-20250718065349",
3
+ "version": "8.0.0-tsdown-package-templates-20251225102319",
4
4
  "private": false,
5
5
  "description": "ESLint config for skuba",
6
6
  "homepage": "https://github.com/seek-oss/skuba/tree/main/packages/eslint-config-skuba#readme",
@@ -9,17 +9,11 @@
9
9
  },
10
10
  "repository": {
11
11
  "type": "git",
12
- "url": "git+https://github.com/seek-oss/skuba.git"
12
+ "url": "git+https://github.com/seek-oss/skuba.git",
13
+ "directory": "packages/eslint-config-skuba"
13
14
  },
14
15
  "license": "MIT",
15
16
  "sideEffects": false,
16
- "imports": {
17
- "#src/*": {
18
- "types": "./src/*",
19
- "import": "./lib/*",
20
- "require": "./lib/*"
21
- }
22
- },
23
17
  "main": "./index.js",
24
18
  "module": "./index.js",
25
19
  "types": "./index.d.ts",
@@ -29,33 +23,31 @@
29
23
  "requireExtensions.js"
30
24
  ],
31
25
  "dependencies": {
32
- "eslint-config-seek": "14.5.3",
26
+ "eslint-config-seek": "15.0.1",
33
27
  "eslint-plugin-yml": "^1.14.0",
34
- "typescript-eslint": "^8.26.0"
28
+ "typescript-eslint": "^8.39.0",
29
+ "eslint-plugin-skuba": "2.0.0-tsdown-package-templates-20251225102319"
35
30
  },
36
31
  "devDependencies": {
37
- "eslint": "^9.11.1",
38
- "typescript": "~5.8.0"
32
+ "eslint": "^9.39.1",
33
+ "typescript": "~5.9.0"
39
34
  },
40
35
  "peerDependencies": {
41
- "eslint": ">=9.11.1",
36
+ "eslint": ">=9.22.0",
42
37
  "typescript": ">=5.5.4"
43
38
  },
44
39
  "engines": {
45
40
  "node": ">=20.9.0"
46
41
  },
47
- "publishConfig": {
48
- "provenance": true
49
- },
50
42
  "skuba": {
51
43
  "entryPoint": "index.js",
52
44
  "template": "oss-npm-package",
53
45
  "type": "package",
54
- "version": "12.0.2"
46
+ "version": "13.1.1"
55
47
  },
56
48
  "scripts": {
57
49
  "format": "pnpm --silent skuba format",
58
50
  "lint": "pnpm --silent skuba lint",
59
- "skuba": "node --experimental-vm-modules ../../lib/skuba"
51
+ "skuba": "node ../../lib/skuba"
60
52
  }
61
53
  }
@@ -124,8 +124,8 @@ function processNode(node, context, check) {
124
124
 
125
125
  const value = source.value.replace(/\?.*$/, '');
126
126
 
127
- // Already contains a file extension
128
- if (!value || /\.[a-zA-Z0-9]+$/.test(value)) {
127
+ // Already contains a valid extension or is empty
128
+ if (!value || /\.(js|mjs|cjs|json|node|ts|tsx|jsx|mts|cts)$/.test(value)) {
129
129
  return;
130
130
  }
131
131
 
@@ -138,10 +138,12 @@ function processNode(node, context, check) {
138
138
  );
139
139
  }
140
140
 
141
- if (value.startsWith('src')) {
141
+ if (value.startsWith('src') || value.startsWith('#src')) {
142
142
  const file = dirname(context.getFilename());
143
143
  const leadingPathToSrc = file.split('/src/')[0];
144
- const valueWithoutSrc = value.split('src/')[1];
144
+ const valueWithoutSrc = value.startsWith('#src')
145
+ ? value.split('#src/')[1]
146
+ : value.split('src/')[1];
145
147
  const finalPath = leadingPathToSrc.includes('/src')
146
148
  ? join(leadingPathToSrc, valueWithoutSrc)
147
149
  : join(findSrc(leadingPathToSrc), 'src', valueWithoutSrc);