@typescript-eslint/experimental-utils 2.22.1-alpha.6 → 2.23.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/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [2.23.0](https://github.com/typescript-eslint/typescript-eslint/compare/v2.22.0...v2.23.0) (2020-03-09)
7
+
8
+ **Note:** Version bump only for package @typescript-eslint/experimental-utils
9
+
10
+
11
+
12
+
13
+
6
14
  # [2.22.0](https://github.com/typescript-eslint/typescript-eslint/compare/v2.21.0...v2.22.0) (2020-03-02)
7
15
 
8
16
  **Note:** Version bump only for package @typescript-eslint/experimental-utils
@@ -10,13 +10,12 @@ function batchedSingleLineTests(options) {
10
10
  .trim()
11
11
  .split('\n')
12
12
  .map((code, i) => {
13
- var _a;
14
13
  const lineNum = i + lineOffset;
15
14
  const errors = 'errors' in options
16
15
  ? options.errors.filter(e => e.line === lineNum)
17
16
  : [];
18
17
  const returnVal = Object.assign(Object.assign({}, options), { code, errors: errors.map(e => (Object.assign(Object.assign({}, e), { line: 1 }))) });
19
- if ((_a = output) === null || _a === void 0 ? void 0 : _a[i]) {
18
+ if (output === null || output === void 0 ? void 0 : output[i]) {
20
19
  return Object.assign(Object.assign({}, returnVal), { output: output[i] });
21
20
  }
22
21
  return returnVal;
@@ -1 +1 @@
1
- {"version":3,"file":"batchedSingleLineTests.js","sourceRoot":"","sources":["../../src/eslint-utils/batchedSingleLineTests.ts"],"names":[],"mappings":";;AA8BA,SAAS,sBAAsB,CAI7B,OAAyE;IAEzE,6BAA6B;IAC7B,MAAM,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACzD,MAAM,MAAM,GACV,QAAQ,IAAI,O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AAC,IAAI,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC;QACnC,CAAC,CAAC,IAAI,CAAC;IACX,OAAO,OAAO,CAAC,IAAI;SAChB,IAAI,EAAE;SACN,KAAK,CAAC,IAAI,CAAC;SACX,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE;QACf,MAAM,OAAO,GAAG,CAAC,GAAG,UAAU,CAAC;QAC/B,MAAM,MAAM,GACV,QAAQ,IAAI,OAAO;YACjB,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,OAAO,CAAC;YAChD,CAAC,CAAC,EAAE,CAAC;QACT,MAAM,SAAS,mCACV,OAAO,KACV,IAAI,EACJ,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,iCACnB,CAAC,KACJ,IAAI,EAAE,CAAC,IACP,CAAC,GACJ,CAAC;QACF,IAAI,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAG,CAAC,GAAG;YACf,uCACK,SAAS,KACZ,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,IACjB;SACH;QACD,OAAO,SAAS,CAAC;IACnB,CAAC,CAAC,CAAC;AACP,CAAC;AAEQ,wDAAsB"}
@@ -4,11 +4,11 @@ const eslint_1 = require("eslint");
4
4
  // the cast on the extends is so that we don't want to have the built type defs to attempt to import eslint
5
5
  class RuleTester extends eslint_1.RuleTester {
6
6
  constructor(config) {
7
- var _a, _b;
7
+ var _a;
8
8
  super(config);
9
9
  // nobody will ever need watching in tests
10
10
  // so we can give everyone a perf win by disabling watching
11
- if ((_b = (_a = config) === null || _a === void 0 ? void 0 : _a.parserOptions) === null || _b === void 0 ? void 0 : _b.project) {
11
+ if ((_a = config === null || config === void 0 ? void 0 : config.parserOptions) === null || _a === void 0 ? void 0 : _a.project) {
12
12
  config.parserOptions.noWatch =
13
13
  typeof config.parserOptions.noWatch === 'boolean' || true;
14
14
  }
@@ -1 +1 @@
1
- {"version":3,"file":"RuleTester.js","sourceRoot":"","sources":["../../src/ts-eslint/RuleTester.ts"],"names":[],"mappings":";;AAIA,mCAAwD;AA4DxD,2GAA2G;AAC3G,MAAM,UAAW,SAAS,mBAGxB;IACA,YAAY,MAAyB;;QACnC,KAAK,CAAC,MAAM,CAAC,CAAC;QAEd,0CAA0C;QAC1C,2DAA2D;QAC3D,gBAAI,MAAM,0CAAE,aAAa,0CAAE,OAAO,EAAE;YAClC,MAAM,CAAC,aAAa,CAAC,OAAO;gBAC1B,OAAO,MAAM,CAAC,aAAa,CAAC,OAAO,KAAK,SAAS,IAAI,IAAI,CAAC;SAC7D;IACH,CAAC;IAED,GAAG,CACD,IAAY,EACZ,IAAuC,EACvC,KAAsC;QAEtC,uFAAuF;QACvF,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;IAC/B,CAAC;CACF;AAKC,gCAAU"}
1
+ {"version":3,"file":"RuleTester.js","sourceRoot":"","sources":["../../src/ts-eslint/RuleTester.ts"],"names":[],"mappings":";;AAIA,mCAAwD;AA4DxD,2GAA2G;AAC3G,MAAM,UAAW,SAAS,mBAGxB;IACA,YAAY,MAAyB;;QACnC,KAAK,CAAC,MAAM,CAAC,CAAC;QAEd,0CAA0C;QAC1C,2DAA2D;QAC3D,UAAI,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,aAAa,0CAAE,OAAO,EAAE;YAClC,MAAM,CAAC,aAAa,CAAC,OAAO;gBAC1B,OAAO,MAAM,CAAC,aAAa,CAAC,OAAO,KAAK,SAAS,IAAI,IAAI,CAAC;SAC7D;IACH,CAAC;IAED,GAAG,CACD,IAAY,EACZ,IAAuC,EACvC,KAAsC;QAEtC,uFAAuF;QACvF,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;IAC/B,CAAC;CACF;AAKC,gCAAU"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typescript-eslint/experimental-utils",
3
- "version": "2.22.1-alpha.6+e5db36f1",
3
+ "version": "2.23.0",
4
4
  "description": "(Experimental) Utilities for working with TypeScript + ESLint together",
5
5
  "keywords": [
6
6
  "eslint",
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@types/json-schema": "^7.0.3",
40
- "@typescript-eslint/typescript-estree": "2.22.1-alpha.6+e5db36f1",
40
+ "@typescript-eslint/typescript-estree": "2.23.0",
41
41
  "eslint-scope": "^5.0.0"
42
42
  },
43
43
  "peerDependencies": {
@@ -50,5 +50,5 @@
50
50
  "type": "opencollective",
51
51
  "url": "https://opencollective.com/typescript-eslint"
52
52
  },
53
- "gitHead": "e5db36f140b6463965858ad4ed77f71a9a00c5a7"
53
+ "gitHead": "b5b3be05375c40364d35b887216b56786e33f057"
54
54
  }