typescript-eslint 8.64.1-alpha.1 → 8.64.1-alpha.11

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/dist/index.js +47 -0
  2. package/package.json +14 -6
package/dist/index.js CHANGED
@@ -1,9 +1,56 @@
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
40
  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");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "typescript-eslint",
3
- "version": "8.64.1-alpha.1",
3
+ "version": "8.64.1-alpha.11",
4
4
  "description": "Tooling which enables you to use TypeScript with ESLint",
5
5
  "files": [
6
6
  "dist",
@@ -40,10 +40,10 @@
40
40
  "eslint-plugin"
41
41
  ],
42
42
  "dependencies": {
43
- "@typescript-eslint/parser": "8.64.1-alpha.1",
44
- "@typescript-eslint/utils": "8.64.1-alpha.1",
45
- "@typescript-eslint/typescript-estree": "8.64.1-alpha.1",
46
- "@typescript-eslint/eslint-plugin": "8.64.1-alpha.1"
43
+ "@typescript-eslint/parser": "8.64.1-alpha.11",
44
+ "@typescript-eslint/typescript-estree": "8.64.1-alpha.11",
45
+ "@typescript-eslint/eslint-plugin": "8.64.1-alpha.11",
46
+ "@typescript-eslint/utils": "8.64.1-alpha.11"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",
@@ -87,6 +87,13 @@
87
87
  "^build",
88
88
  "typecheck"
89
89
  ]
90
+ },
91
+ "attw-check": {
92
+ "cache": false,
93
+ "options": {
94
+ "cwd": "{projectRoot}"
95
+ },
96
+ "command": "pnpm pack --out attw-check.tgz && attw attw-check.tgz --profile node16 --ignore-rules cjs-only-exports-default"
90
97
  }
91
98
  }
92
99
  },
@@ -97,6 +104,7 @@
97
104
  "lint": "pnpm -w exec nx lint",
98
105
  "test": "pnpm -w exec nx test",
99
106
  "typecheck": "pnpm -w exec nx typecheck",
100
- "typecheck:tsgo": "pnpm -w exec nx typecheck:tsgo"
107
+ "typecheck:tsgo": "pnpm -w exec nx typecheck:tsgo",
108
+ "attw-check": "pnpm -w exec nx attw-check"
101
109
  }
102
110
  }