@typescript-eslint/typescript-estree 7.12.1-alpha.8 → 7.13.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/dist/index.d.ts CHANGED
@@ -9,5 +9,6 @@ export { typescriptVersionIsAtLeast } from './version-check';
9
9
  export * from './getModifiers';
10
10
  export { TSError } from './node-utils';
11
11
  export * from './clear-caches';
12
+ export { withoutProjectParserOptions } from './withoutProjectParserOptions';
12
13
  export declare const version: string;
13
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,GAAG,EACH,KAAK,EACL,wBAAwB,EACxB,8BAA8B,GAC/B,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,cAAc,EACd,iCAAiC,EACjC,oCAAoC,EACpC,eAAe,GAChB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,2BAA2B,IAAI,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACpG,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAC7D,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAI/B,eAAO,MAAM,OAAO,EAAE,MAA2C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,GAAG,EACH,KAAK,EACL,wBAAwB,EACxB,8BAA8B,GAC/B,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,cAAc,EACd,iCAAiC,EACjC,oCAAoC,EACpC,eAAe,GAChB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,2BAA2B,IAAI,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACpG,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAC7D,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAI5E,eAAO,MAAM,OAAO,EAAE,MAA2C,CAAC"}
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.version = exports.TSError = exports.typescriptVersionIsAtLeast = exports.getCanonicalFileName = exports.createProgram = exports.simpleTraverse = exports.parseAndGenerateServices = exports.parse = void 0;
17
+ exports.version = exports.withoutProjectParserOptions = exports.TSError = exports.typescriptVersionIsAtLeast = exports.getCanonicalFileName = exports.createProgram = exports.simpleTraverse = exports.parseAndGenerateServices = exports.parse = void 0;
18
18
  var parser_1 = require("./parser");
19
19
  Object.defineProperty(exports, "parse", { enumerable: true, get: function () { return parser_1.parse; } });
20
20
  Object.defineProperty(exports, "parseAndGenerateServices", { enumerable: true, get: function () { return parser_1.parseAndGenerateServices; } });
@@ -32,6 +32,8 @@ __exportStar(require("./getModifiers"), exports);
32
32
  var node_utils_1 = require("./node-utils");
33
33
  Object.defineProperty(exports, "TSError", { enumerable: true, get: function () { return node_utils_1.TSError; } });
34
34
  __exportStar(require("./clear-caches"), exports);
35
+ var withoutProjectParserOptions_1 = require("./withoutProjectParserOptions");
36
+ Object.defineProperty(exports, "withoutProjectParserOptions", { enumerable: true, get: function () { return withoutProjectParserOptions_1.withoutProjectParserOptions; } });
35
37
  // note - cannot migrate this to an import statement because it will make TSC copy the package.json to the dist folder
36
38
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access
37
39
  exports.version = require('../package.json').version;
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,mCAKkB;AAHhB,+FAAA,KAAK,OAAA;AACL,kHAAA,wBAAwB,OAAA;AAS1B,qDAAmD;AAA1C,iHAAA,cAAc,OAAA;AACvB,8CAA4B;AAC5B,4EAAoG;AAA3F,oHAAA,2BAA2B,OAAiB;AACrD,iEAA+C;AAC/C,kDAA+D;AAAtD,8GAAA,oBAAoB,OAAA;AAC7B,iDAA6D;AAApD,2HAAA,0BAA0B,OAAA;AACnC,iDAA+B;AAC/B,2CAAuC;AAA9B,qGAAA,OAAO,OAAA;AAChB,iDAA+B;AAE/B,sHAAsH;AACtH,+GAA+G;AAClG,QAAA,OAAO,GAAW,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAAO,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,mCAKkB;AAHhB,+FAAA,KAAK,OAAA;AACL,kHAAA,wBAAwB,OAAA;AAS1B,qDAAmD;AAA1C,iHAAA,cAAc,OAAA;AACvB,8CAA4B;AAC5B,4EAAoG;AAA3F,oHAAA,2BAA2B,OAAiB;AACrD,iEAA+C;AAC/C,kDAA+D;AAAtD,8GAAA,oBAAoB,OAAA;AAC7B,iDAA6D;AAApD,2HAAA,0BAA0B,OAAA;AACnC,iDAA+B;AAC/B,2CAAuC;AAA9B,qGAAA,OAAO,OAAA;AAChB,iDAA+B;AAC/B,6EAA4E;AAAnE,0IAAA,2BAA2B,OAAA;AAEpC,sHAAsH;AACtH,+GAA+G;AAClG,QAAA,OAAO,GAAW,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAAO,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { TSESTreeOptions } from './parser-options';
2
+ /**
3
+ * Removes options that prompt the parser to parse the project with type
4
+ * information. In other words, you can use this if you are invoking the parser
5
+ * directly, to ensure that one file will be parsed in isolation, which is much,
6
+ * much faster.
7
+ *
8
+ * @see https://github.com/typescript-eslint/typescript-eslint/issues/8428
9
+ */
10
+ export declare function withoutProjectParserOptions(opts: TSESTreeOptions): TSESTreeOptions;
11
+ //# sourceMappingURL=withoutProjectParserOptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withoutProjectParserOptions.d.ts","sourceRoot":"","sources":["../src/withoutProjectParserOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD;;;;;;;GAOG;AACH,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,eAAe,GACpB,eAAe,CAKjB"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.withoutProjectParserOptions = void 0;
4
+ /**
5
+ * Removes options that prompt the parser to parse the project with type
6
+ * information. In other words, you can use this if you are invoking the parser
7
+ * directly, to ensure that one file will be parsed in isolation, which is much,
8
+ * much faster.
9
+ *
10
+ * @see https://github.com/typescript-eslint/typescript-eslint/issues/8428
11
+ */
12
+ function withoutProjectParserOptions(opts) {
13
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars -- The variables are meant to be omitted
14
+ const { EXPERIMENTAL_useProjectService, project, ...rest } = opts;
15
+ return rest;
16
+ }
17
+ exports.withoutProjectParserOptions = withoutProjectParserOptions;
18
+ //# sourceMappingURL=withoutProjectParserOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withoutProjectParserOptions.js","sourceRoot":"","sources":["../src/withoutProjectParserOptions.ts"],"names":[],"mappings":";;;AAEA;;;;;;;GAOG;AACH,SAAgB,2BAA2B,CACzC,IAAqB;IAErB,sGAAsG;IACtG,MAAM,EAAE,8BAA8B,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,GAAG,IAAI,CAAC;IAElE,OAAO,IAAI,CAAC;AACd,CAAC;AAPD,kEAOC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typescript-eslint/typescript-estree",
3
- "version": "7.12.1-alpha.8",
3
+ "version": "7.13.0",
4
4
  "description": "A parser that converts TypeScript source code into an ESTree compatible form",
5
5
  "files": [
6
6
  "dist",
@@ -54,8 +54,8 @@
54
54
  "typecheck": "tsc --noEmit"
55
55
  },
56
56
  "dependencies": {
57
- "@typescript-eslint/types": "7.12.1-alpha.8",
58
- "@typescript-eslint/visitor-keys": "7.12.1-alpha.8",
57
+ "@typescript-eslint/types": "7.13.0",
58
+ "@typescript-eslint/visitor-keys": "7.13.0",
59
59
  "debug": "^4.3.4",
60
60
  "globby": "^11.1.0",
61
61
  "is-glob": "^4.0.3",