Repository: typescript-eslint/tslint-to-eslint-config
Pull request #683 (2020-08-15 00:10:10)

Update dependency @types/jest to v26.0.10
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [@types/jest](https://togithub.com/DefinitelyTyped/DefinitelyTyped) | devDependencies | patch | [`26.0.9` -> `26.0.10`](https://renovatebot.com/diffs/npm/@types%2fjest/26.0.9/26.0.10) |

---

### Renovate configuration

:date: **Schedule**: At any time (no schedule defined).

:vertical_traffic_light: **Automerge**: Enabled.

:recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

:no_bell: **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#typescript-eslint/tslint-to-eslint-config).


Patch:
diff --git a/package-lock.json b/package-lock.json
index f99e741..dcef2e0 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -2885,9 +2885,9 @@
             }
         },
         "@types/istanbul-reports": {
-            "version": "1.1.1",
-            "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-1.1.1.tgz",
-            "integrity": "sha512-UpYjBi8xefVChsCoBpKShdxTllC9pwISirfoZsUa2AAdQg/Jd2KQGtSbw+ya7GPo7x/wAPlH6JBhKhAsXUEZNA==",
+            "version": "1.1.2",
+            "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-1.1.2.tgz",
+            "integrity": "sha512-P/W9yOX/3oPZSpaYOCQzGqgCQRXn0FFO/V8bWrCQs+wLmvVVxk6CRBXALEvNs9OHIatlnlFokfhuDo2ug01ciw==",
             "dev": true,
             "requires": {
                 "@types/istanbul-lib-coverage": "*",
@@ -2895,9 +2895,9 @@
             }
         },
         "@types/jest": {
-            "version": "26.0.9",
-            "resolved": "https://registry.npmjs.org/@types/jest/-/jest-26.0.9.tgz",
-            "integrity": "sha512-k4qFfJ5AUKrWok5KYXp2EPm89b0P/KZpl7Vg4XuOTVVQEhLDBDBU3iBFrjjdgd8fLw96aAtmnwhXHl63bWeBQQ==",
+            "version": "26.0.10",
+            "resolved": "https://registry.npmjs.org/@types/jest/-/jest-26.0.10.tgz",
+            "integrity": "sha512-i2m0oyh8w/Lum7wWK/YOZJakYF8Mx08UaKA1CtbmFeDquVhAEdA7znacsVSf2hJ1OQ/OfVMGN90pw/AtzF8s/Q==",
             "dev": true,
             "requires": {
                 "jest-diff": "^25.2.1",
diff --git a/package.json b/package.json
index 3466a2b..90fa62f 100644
--- a/package.json
+++ b/package.json
@@ -26,7 +26,7 @@
         "@babel/preset-typescript": "7.10.4",
         "@types/eslint-config-prettier": "6.11.0",
         "@types/glob": "7.1.3",
-        "@types/jest": "26.0.9",
+        "@types/jest": "26.0.10",
         "@types/node": "12.12.21",
         "@typescript-eslint/eslint-plugin": "3.9.0",
         "@typescript-eslint/parser": "3.9.0",
diff --git a/src/rules/converters/arrow-return-shorthand.ts b/src/rules/converters/arrow-return-shorthand.ts
index 58167f8..dd193b9 100644
--- a/src/rules/converters/arrow-return-shorthand.ts
+++ b/src/rules/converters/arrow-return-shorthand.ts
@@ -1,5 +1,8 @@
 import { RuleConverter } from "../converter";
 
+export const ARROW_RETURN_NOTICE =
+    "ESLint will throw an error if the function body is multiline yet has a one-line return on it.";
+
 export const convertArrowReturnShorthand: RuleConverter = (tslintRule) => {
     return {
         rules: [
@@ -9,6 +12,7 @@ export const convertArrowReturnShorthand: RuleConverter = (tslintRule) => {
                         ruleArguments: ["always"],
                     }),
                 ruleName: "arrow-body-style",
+                notices: [ARROW_RETURN_NOTICE],
             },
         ],
     };
diff --git a/src/rules/converters/codelyzer/pipe-prefix.ts b/src/rules/converters/codelyzer/pipe-prefix.ts
new file mode 100644
index 0000000..4a927e9
--- /dev/null
+++ b/src/rules/converters/codelyzer/pipe-prefix.ts
@@ -0,0 +1,19 @@
+import { RuleConverter } from "../../converter";
+
+export const convertPipePrefix: RuleConverter = (tslintRule) => {
+    return {
+        rules: [
+            {
+                ...(tslintRule.ruleArguments.length !== 0 && {
+                    ruleArguments: [
+                        {
+                            prefixes: tslintRule.ruleArguments,
+                        },
+                    ],
+                }),
+                ruleName: "@angular-eslint/pipe-prefix",
+            },
+        ],
+        plugins: ["@angular-eslint/eslint-plugin"],
+    };
+};
diff --git a/src/rules/rulesConverters.ts b/src/rules/rulesConverters.ts
index 35c7954..fc532fd 100644
--- a/src/rules/rulesConverters.ts
+++ b/src/rules/rulesConverters.ts
@@ -158,6 +158,7 @@ import { convertNoOutputRename } from "./converters/codelyzer/no-output-rename";
 import { convertNoOutputsMetadataProperty } from "./converters/codelyzer/no-outputs-metadata-property";
 import { convertNoPipeImpure } from "./converters/codelyzer/no-pipe-impure";
 import { convertNoQueriesMetadataProperty } from "./converters/codelyzer/no-queries-metadata-property";
+import { convertPipePrefix } from "./converters/codelyzer/pipe-prefix";
 import { convertPreferOnPushComponentChangeDetection } from "./converters/codelyzer/prefer-on-push-component-change-detection";
 import { convertPreferOutputReadonly } from "./converters/codelyzer/prefer-output-readonly";
 import { convertRelativeUrlPrefix } from "./converters/codelyzer/relative-url-prefix";
@@ -323,6 +324,7 @@ export const rulesConverters = new Map([
     ["one-variable-per-declaration", convertOneVariablePerDeclaration],
     ["only-arrow-functions", convertOnlyArrowFunctions],
     ["ordered-imports", convertOrderedImports],
+    ["pipe-prefix", convertPipePrefix],
     ["prefer-const", convertPreferConst],
     ["prefer-for-of", convertPreferForOf],
     ["prefer-function-over-method", convertPreferFunctionOverMethod],


Test patch:
diff --git a/src/rules/converters/codelyzer/tests/pipe-prefix.test.ts b/src/rules/converters/codelyzer/tests/pipe-prefix.test.ts
new file mode 100644
index 0000000..a046619
--- /dev/null
+++ b/src/rules/converters/codelyzer/tests/pipe-prefix.test.ts
@@ -0,0 +1,38 @@
+import { convertPipePrefix } from "../pipe-prefix";
+
+describe(convertPipePrefix, () => {
+    test("conversion without arguments", () => {
+        const result = convertPipePrefix({
+            ruleArguments: [],
+        });
+
+        expect(result).toEqual({
+            rules: [
+                {
+                    ruleName: "@angular-eslint/pipe-prefix",
+                },
+            ],
+            plugins: ["@angular-eslint/eslint-plugin"],
+        });
+    });
+
+    test("conversion with arguments", () => {
+        const result = convertPipePrefix({
+            ruleArguments: ["ng", "sg", "mg"],
+        });
+
+        expect(result).toEqual({
+            rules: [
+                {
+                    ruleArguments: [
+                        {
+                            prefixes: ["ng", "sg", "mg"],
+                        },
+                    ],
+                    ruleName: "@angular-eslint/pipe-prefix",
+                },
+            ],
+            plugins: ["@angular-eslint/eslint-plugin"],
+        });
+    });
+});
diff --git a/src/rules/converters/tests/arrow-return-shorthand.test.ts b/src/rules/converters/tests/arrow-return-shorthand.test.ts
index 6bd6580..0e4d04b 100644
--- a/src/rules/converters/tests/arrow-return-shorthand.test.ts
+++ b/src/rules/converters/tests/arrow-return-shorthand.test.ts
@@ -1,4 +1,4 @@
-import { convertArrowReturnShorthand } from "../arrow-return-shorthand";
+import { convertArrowReturnShorthand, ARROW_RETURN_NOTICE } from "../arrow-return-shorthand";
 
 describe(convertArrowReturnShorthand, () => {
     test("conversion without arguments", () => {
@@ -10,6 +10,7 @@ describe(convertArrowReturnShorthand, () => {
             rules: [
                 {
                     ruleName: "arrow-body-style",
+                    notices: [ARROW_RETURN_NOTICE],
                 },
             ],
         });
@@ -25,6 +26,7 @@ describe(convertArrowReturnShorthand, () => {
                 {
                     ruleArguments: ["always"],
                     ruleName: "arrow-body-style",
+                    notices: [ARROW_RETURN_NOTICE],
                 },
             ],
         });