@depup/typescript-eslint 8.58.1-depup.0 → 8.67.0-depup.0

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/README.md CHANGED
@@ -13,8 +13,8 @@ npm install @depup/typescript-eslint
13
13
 
14
14
  | Field | Value |
15
15
  |-------|-------|
16
- | Original | [typescript-eslint](https://www.npmjs.com/package/typescript-eslint) @ 8.58.1 |
17
- | Processed | 2026-04-08 |
16
+ | Original | [typescript-eslint](https://www.npmjs.com/package/typescript-eslint) @ 8.67.0 |
17
+ | Processed | 2026-08-16 |
18
18
  | Smoke test | passed |
19
19
  | Deps updated | 0 |
20
20
 
package/changes.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "bumped": {},
3
- "timestamp": "2026-04-08T04:55:31.885Z",
3
+ "timestamp": "2026-08-16T00:30:51.421Z",
4
4
  "totalUpdated": 0
5
5
  }
@@ -11,7 +11,7 @@ export interface ConfigWithExtends extends TSESLint.FlatConfig.Config {
11
11
  * export default tseslint.config({
12
12
  * files: ['** /*.ts'],
13
13
  * extends: [
14
- * eslint.configs.recommended,
14
+ * js.configs.recommended,
15
15
  * tseslint.configs.recommended,
16
16
  * ],
17
17
  * rules: {
@@ -24,7 +24,7 @@ export interface ConfigWithExtends extends TSESLint.FlatConfig.Config {
24
24
  *
25
25
  * export default [
26
26
  * {
27
- * ...eslint.configs.recommended,
27
+ * ...js.configs.recommended,
28
28
  * files: ['** /*.ts'],
29
29
  * },
30
30
  * ...tseslint.configs.recommended.map(conf => ({
@@ -50,11 +50,11 @@ export type ConfigArray = TSESLint.FlatConfig.ConfigArray;
50
50
  * ```js
51
51
  * // @ts-check
52
52
  *
53
- * import eslint from '@eslint/js';
53
+ * import js from '@eslint/js';
54
54
  * import tseslint from 'typescript-eslint';
55
55
  *
56
56
  * export default tseslint.config(
57
- * eslint.configs.recommended,
57
+ * js.configs.recommended,
58
58
  * tseslint.configs.recommended,
59
59
  * {
60
60
  * rules: {
@@ -7,11 +7,11 @@ exports.config = config;
7
7
  * ```js
8
8
  * // @ts-check
9
9
  *
10
- * import eslint from '@eslint/js';
10
+ * import js from '@eslint/js';
11
11
  * import tseslint from 'typescript-eslint';
12
12
  *
13
13
  * export default tseslint.config(
14
- * eslint.configs.recommended,
14
+ * js.configs.recommended,
15
15
  * tseslint.configs.recommended,
16
16
  * {
17
17
  * rules: {
@@ -0,0 +1,123 @@
1
+ /**
2
+ * File extensions for JS- and TS-based files, provided to facilitate
3
+ * programmatic construction of globs used in configs.
4
+ */
5
+ export declare const extensions: {
6
+ /**
7
+ * File extensions (without leading .) for standard JS-based files supported by typescript-eslint.
8
+ *
9
+ * The value of this property is the array `['mjs', 'js', 'cjs', 'jsx']`
10
+ */
11
+ js: string[];
12
+ /**
13
+ * File extensions (without leading .) for standard TS-based files supported by typescript-eslint.
14
+ *
15
+ * The value of this property is the array `['mts', 'ts', 'cts', 'tsx']`
16
+ */
17
+ ts: string[];
18
+ /**
19
+ * File extensions (without leading .) for both standard JS- and TS-based files supported by typescript-eslint.
20
+ *
21
+ * The value of this property is the array `['mjs', 'js', 'cjs', 'jsx', 'mts', 'ts', 'cts', 'tsx', ]`
22
+ */
23
+ jsts: string[];
24
+ };
25
+ /**
26
+ * Globs for JS- and TS-based files supported by typescript-eslint, in order to
27
+ * simplify typical configurations.
28
+ */
29
+ export declare const globs: {
30
+ /**
31
+ * Glob to match standard JS-based files supported by typescript-eslint.
32
+ *
33
+ * The value of this glob is the string "**/*.{mjs,js,cjs,jsx}"
34
+ *
35
+ * @example
36
+ * ```ts
37
+ * import { defineConfig } from 'eslint/config';
38
+ * import tseslint from 'typescript-eslint';
39
+ *
40
+ * export default defineConfig(
41
+ * // other configs...
42
+ * {
43
+ * name: 'disable-type-checked-rules-for-JavaScript',
44
+ * files: [tseslint.globs.js],
45
+ * extends: [
46
+ * tseslint.configs.disableTypeChecked,
47
+ * ],
48
+ * },
49
+ * );
50
+ * ```
51
+ */
52
+ js: string;
53
+ /**
54
+ * Glob to match standard TS-based files supported by typescript-eslint.
55
+ *
56
+ * The value of this glob is the string "**/*.{mts,ts,cts,tsx}"
57
+ *
58
+ * @example
59
+ * ```ts
60
+ * import { defineConfig } from 'eslint/config';
61
+ * import tseslint from 'typescript-eslint';
62
+ *
63
+ * export default defineConfig(
64
+ * // other configs...
65
+ * {
66
+ * name: 'config-for-TypeScript',
67
+ * files: [tseslint.globs.ts],
68
+ * extends: [
69
+ * tseslint.configs.recommended,
70
+ * ]
71
+ * },
72
+ * );
73
+ * ```
74
+ */
75
+ ts: string;
76
+ /**
77
+ * Glob to match both standard JS- and TS-based files supported by typescript-eslint.
78
+ *
79
+ * The value of this glob is the string "**/*.{mjs,js,cjs,jsx,mts,ts,cts,tsx}"
80
+ *
81
+ * @example
82
+ * ```ts
83
+ * import { defineConfig } from 'eslint/config';
84
+ * import tseslint from 'typescript-eslint';
85
+ *
86
+ * export default defineConfig(
87
+ * // other configs...
88
+ * {
89
+ * name: 'config-for-TypeScript/JavaScript',
90
+ * files: [tseslint.globs.jsts],
91
+ * extends: [
92
+ * tseslint.configs.recommended,
93
+ * ],
94
+ * },
95
+ * );
96
+ * ```
97
+ */
98
+ jsts: string;
99
+ /**
100
+ * Glob to match TypeScript declaration files (.d.ts, .d.css.ts, .d.other-file-type.ts).
101
+ *
102
+ * The value of this glob is the string "**/*.{d.ts,d.*ts}"
103
+ *
104
+ * @example
105
+ * ```ts
106
+ * import { defineConfig } from 'eslint/config';
107
+ * import tseslint from 'typescript-eslint';
108
+ *
109
+ * export default defineConfig(
110
+ * // other configs...
111
+ * {
112
+ * name: 'disable-rules-for-declaration-files',
113
+ * files: [tseslint.globs.tsDeclaration],
114
+ * rules: {
115
+ * // Disable rules that are problematic in declaration files
116
+ * 'no-var': 'off',
117
+ * },
118
+ * },
119
+ * );
120
+ * ```
121
+ */
122
+ tsDeclaration: string;
123
+ };
package/dist/globs.js ADDED
@@ -0,0 +1,134 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.globs = exports.extensions = void 0;
4
+ const jsExtensions = ['mjs', 'js', 'cjs', 'jsx'];
5
+ Object.freeze(jsExtensions);
6
+ const tsExtensions = ['mts', 'ts', 'cts', 'tsx'];
7
+ Object.freeze(tsExtensions);
8
+ const jstsExtensions = [...jsExtensions, ...tsExtensions];
9
+ Object.freeze(jstsExtensions);
10
+ /**
11
+ * File extensions for JS- and TS-based files, provided to facilitate
12
+ * programmatic construction of globs used in configs.
13
+ */
14
+ exports.extensions = {
15
+ /**
16
+ * File extensions (without leading .) for standard JS-based files supported by typescript-eslint.
17
+ *
18
+ * The value of this property is the array `['mjs', 'js', 'cjs', 'jsx']`
19
+ */
20
+ js: jsExtensions,
21
+ /**
22
+ * File extensions (without leading .) for standard TS-based files supported by typescript-eslint.
23
+ *
24
+ * The value of this property is the array `['mts', 'ts', 'cts', 'tsx']`
25
+ */
26
+ ts: tsExtensions,
27
+ /**
28
+ * File extensions (without leading .) for both standard JS- and TS-based files supported by typescript-eslint.
29
+ *
30
+ * The value of this property is the array `['mjs', 'js', 'cjs', 'jsx', 'mts', 'ts', 'cts', 'tsx', ]`
31
+ */
32
+ jsts: jstsExtensions,
33
+ };
34
+ /**
35
+ * Globs for JS- and TS-based files supported by typescript-eslint, in order to
36
+ * simplify typical configurations.
37
+ */
38
+ exports.globs = {
39
+ // Note that / is used instead of / in the JSDocs in order to
40
+ // avoid unintentionally terminating block comments with */
41
+ /**
42
+ * Glob to match standard JS-based files supported by typescript-eslint.
43
+ *
44
+ * The value of this glob is the string "**/*.{mjs,js,cjs,jsx}"
45
+ *
46
+ * @example
47
+ * ```ts
48
+ * import { defineConfig } from 'eslint/config';
49
+ * import tseslint from 'typescript-eslint';
50
+ *
51
+ * export default defineConfig(
52
+ * // other configs...
53
+ * {
54
+ * name: 'disable-type-checked-rules-for-JavaScript',
55
+ * files: [tseslint.globs.js],
56
+ * extends: [
57
+ * tseslint.configs.disableTypeChecked,
58
+ * ],
59
+ * },
60
+ * );
61
+ * ```
62
+ */
63
+ js: `**/*.{${exports.extensions.js.join(',')}}`,
64
+ /**
65
+ * Glob to match standard TS-based files supported by typescript-eslint.
66
+ *
67
+ * The value of this glob is the string "**/*.{mts,ts,cts,tsx}"
68
+ *
69
+ * @example
70
+ * ```ts
71
+ * import { defineConfig } from 'eslint/config';
72
+ * import tseslint from 'typescript-eslint';
73
+ *
74
+ * export default defineConfig(
75
+ * // other configs...
76
+ * {
77
+ * name: 'config-for-TypeScript',
78
+ * files: [tseslint.globs.ts],
79
+ * extends: [
80
+ * tseslint.configs.recommended,
81
+ * ]
82
+ * },
83
+ * );
84
+ * ```
85
+ */
86
+ ts: `**/*.{${exports.extensions.ts.join(',')}}`,
87
+ /**
88
+ * Glob to match both standard JS- and TS-based files supported by typescript-eslint.
89
+ *
90
+ * The value of this glob is the string "**/*.{mjs,js,cjs,jsx,mts,ts,cts,tsx}"
91
+ *
92
+ * @example
93
+ * ```ts
94
+ * import { defineConfig } from 'eslint/config';
95
+ * import tseslint from 'typescript-eslint';
96
+ *
97
+ * export default defineConfig(
98
+ * // other configs...
99
+ * {
100
+ * name: 'config-for-TypeScript/JavaScript',
101
+ * files: [tseslint.globs.jsts],
102
+ * extends: [
103
+ * tseslint.configs.recommended,
104
+ * ],
105
+ * },
106
+ * );
107
+ * ```
108
+ */
109
+ jsts: `**/*.{${exports.extensions.jsts.join(',')}}`,
110
+ /**
111
+ * Glob to match TypeScript declaration files (.d.ts, .d.css.ts, .d.other-file-type.ts).
112
+ *
113
+ * The value of this glob is the string "**/*.{d.ts,d.*ts}"
114
+ *
115
+ * @example
116
+ * ```ts
117
+ * import { defineConfig } from 'eslint/config';
118
+ * import tseslint from 'typescript-eslint';
119
+ *
120
+ * export default defineConfig(
121
+ * // other configs...
122
+ * {
123
+ * name: 'disable-rules-for-declaration-files',
124
+ * files: [tseslint.globs.tsDeclaration],
125
+ * rules: {
126
+ * // Disable rules that are problematic in declaration files
127
+ * 'no-var': 'off',
128
+ * },
129
+ * },
130
+ * );
131
+ * ```
132
+ */
133
+ tsDeclaration: '**/*.{d.ts,d.*.ts}',
134
+ };
package/dist/index.d.ts CHANGED
@@ -147,8 +147,21 @@ declare const _default: {
147
147
  */
148
148
  stylisticTypeCheckedOnly: CompatibleConfigArray;
149
149
  };
150
+ extensions: {
151
+ js: string[];
152
+ ts: string[];
153
+ jsts: string[];
154
+ };
155
+ globs: {
156
+ js: string;
157
+ ts: string;
158
+ jsts: string;
159
+ tsDeclaration: string;
160
+ };
150
161
  parser: CompatibleParser;
151
162
  plugin: CompatiblePlugin;
152
163
  };
153
164
  export default _default;
154
165
  export { config, type ConfigWithExtends, type InfiniteDepthConfigWithExtends, type ConfigArray, } from './config-helper';
166
+ export { extensions, globs } from './globs';
167
+ export type { CompatibleConfig, CompatibleConfigArray, CompatibleParser, CompatiblePlugin, } from './compatibility-types';
package/dist/index.js CHANGED
@@ -1,14 +1,62 @@
1
1
  "use strict";
2
+ /* eslint-disable import/first -- intentionally executing code before rest of the require()s. This will not work with ESM. */
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
2
36
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
37
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
38
  };
5
39
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.config = exports.configs = exports.plugin = exports.parser = void 0;
40
+ exports.globs = exports.extensions = exports.config = exports.configs = exports.plugin = exports.parser = void 0;
41
+ const ts = __importStar(require("typescript"));
42
+ const [versionMajor, _versionMinor] = ts.versionMajorMinor
43
+ .split('.')
44
+ .map(Number);
45
+ if (versionMajor >= 7) {
46
+ // eslint-disable-next-line no-console
47
+ console.error([
48
+ 'typescript-eslint does not support TS 7.0.',
49
+ 'Please see https://devblogs.microsoft.com/typescript/announcing-typescript-7-0/#running-side-by-side-with-typescript-6.0 to run typescript-eslint using the TS 6 API.',
50
+ "See also https://github.com/typescript-eslint/typescript-eslint/issues/10940 for tracking typescript-eslint's support for TS >=7.1",
51
+ ].join('\n'));
52
+ throw new Error('typescript-eslint does not support TS 7.0.');
53
+ }
7
54
  const eslint_plugin_1 = __importDefault(require("@typescript-eslint/eslint-plugin"));
8
55
  const raw_plugin_1 = __importDefault(require("@typescript-eslint/eslint-plugin/use-at-your-own-risk/raw-plugin"));
9
56
  const typescript_estree_1 = require("@typescript-eslint/typescript-estree");
10
57
  const config_helper_1 = require("./config-helper");
11
58
  const getTSConfigRootDirFromStack_1 = require("./getTSConfigRootDirFromStack");
59
+ const globs_1 = require("./globs");
12
60
  exports.parser = raw_plugin_1.default.parser;
13
61
  /*
14
62
  we could build a plugin object here without the `configs` key - but if we do
@@ -165,9 +213,14 @@ module.exports = config(
165
213
  exports.default = {
166
214
  config: config_helper_1.config,
167
215
  configs: exports.configs,
216
+ extensions: globs_1.extensions,
217
+ globs: globs_1.globs,
168
218
  parser: exports.parser,
169
219
  plugin: exports.plugin,
170
220
  };
171
221
  var config_helper_2 = require("./config-helper");
172
222
  // eslint-disable-next-line @typescript-eslint/no-deprecated
173
223
  Object.defineProperty(exports, "config", { enumerable: true, get: function () { return config_helper_2.config; } });
224
+ var globs_2 = require("./globs");
225
+ Object.defineProperty(exports, "extensions", { enumerable: true, get: function () { return globs_2.extensions; } });
226
+ Object.defineProperty(exports, "globs", { enumerable: true, get: function () { return globs_2.globs; } });
package/package.json CHANGED
@@ -1,13 +1,12 @@
1
1
  {
2
2
  "name": "@depup/typescript-eslint",
3
- "version": "8.58.1-depup.0",
3
+ "version": "8.67.0-depup.0",
4
4
  "description": "Tooling which enables you to use TypeScript with ESLint (with updated dependencies)",
5
5
  "files": [
6
6
  "dist",
7
- "!*.tsbuildinfo",
8
- "README.md",
9
- "LICENSE",
10
- "changes.json"
7
+ "!**/*.tsbuildinfo",
8
+ "changes.json",
9
+ "README.md"
11
10
  ],
12
11
  "type": "commonjs",
13
12
  "exports": {
@@ -49,18 +48,20 @@
49
48
  "eslint-plugin"
50
49
  ],
51
50
  "dependencies": {
52
- "@typescript-eslint/eslint-plugin": "8.58.1",
53
- "@typescript-eslint/parser": "8.58.1",
54
- "@typescript-eslint/typescript-estree": "8.58.1",
55
- "@typescript-eslint/utils": "8.58.1"
51
+ "@typescript-eslint/eslint-plugin": "8.67.0",
52
+ "@typescript-eslint/parser": "8.67.0",
53
+ "@typescript-eslint/typescript-estree": "8.67.0",
54
+ "@typescript-eslint/utils": "8.67.0"
56
55
  },
57
56
  "peerDependencies": {
58
57
  "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",
59
58
  "typescript": ">=4.8.4 <6.1.0"
60
59
  },
61
60
  "devDependencies": {
61
+ "@typescript/native": "npm:typescript@^7.0.2",
62
62
  "@vitest/coverage-v8": "^4.0.18",
63
63
  "eslint": "^10.0.0",
64
+ "minimatch": "*",
64
65
  "rimraf": "^5.0.10",
65
66
  "typescript": ">=4.8.4 <6.1.0",
66
67
  "vitest": "^4.0.18"
@@ -84,11 +85,24 @@
84
85
  "{projectRoot}/dist"
85
86
  ]
86
87
  },
88
+ "typecheck:tsgo": {
89
+ "outputs": [
90
+ "{workspaceRoot}/dist",
91
+ "{projectRoot}/dist"
92
+ ]
93
+ },
87
94
  "test": {
88
95
  "dependsOn": [
89
96
  "^build",
90
97
  "typecheck"
91
98
  ]
99
+ },
100
+ "attw-check": {
101
+ "cache": false,
102
+ "options": {
103
+ "cwd": "{projectRoot}"
104
+ },
105
+ "command": "pnpm pack --out attw-check.tgz && attw attw-check.tgz --profile node16 --ignore-rules cjs-only-exports-default"
92
106
  }
93
107
  }
94
108
  },
@@ -98,14 +112,16 @@
98
112
  "format": "pnpm -w run format",
99
113
  "lint": "pnpm -w exec nx lint",
100
114
  "test": "pnpm -w exec nx test",
101
- "typecheck": "pnpm -w exec nx typecheck"
115
+ "typecheck": "pnpm -w exec nx typecheck",
116
+ "typecheck:tsgo": "pnpm -w exec nx typecheck:tsgo",
117
+ "attw-check": "pnpm -w exec nx attw-check"
102
118
  },
103
119
  "depup": {
104
120
  "changes": {},
105
121
  "depsUpdated": 0,
106
122
  "originalPackage": "typescript-eslint",
107
- "originalVersion": "8.58.1",
108
- "processedAt": "2026-04-08T04:55:36.371Z",
123
+ "originalVersion": "8.67.0",
124
+ "processedAt": "2026-08-16T00:30:56.666Z",
109
125
  "smokeTest": "passed"
110
126
  }
111
127
  }