Skip to content

Commit 1f098fb

Browse files
docs: update tslint migration
1 parent 16d49b4 commit 1f098fb

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

docs/user-guide/migrating-from-tslint.md

+17-17
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,20 @@ In order for the parser to have access to type information, it needs access to y
5151

5252
Below is a table mapping the `eslint-plugin-functional` rules to their `tslint-immutable` equivalents.
5353

54-
| `eslint-plugin-functional` Rule | Equivalent `tslint-immutable` Rules |
55-
| ----------------------------------------------------------------------------- | ------------------------------------------------------- |
56-
| [`functional/prefer-readonly-type`](../rules/prefer-readonly-type.md) | `readonly-keyword` & `readonly-array` |
57-
| [`functional/no-let`](../rules/no-let.md) | `no-let` |
58-
| [`functional/immutable-data`](../rules/immutable-data.md) | `no-object-mutation`, `no-array-mutation` & `no-delete` |
59-
| [`functional/no-method-signature`](../rules/no-method-signature.md) | `no-method-signature` |
60-
| [`functional/no-this-expression`](../rules/no-this-expression.md) | `no-this` |
61-
| [`functional/no-class`](../rules/no-class.md) | `no-class` |
62-
| [`functional/no-mixed-type`](../rules/no-mixed-type.md) | `no-mixed-interface` |
63-
| [`functional/no-expression-statement`](../rules/no-expression-statement.md) | `no-expression-statement` |
64-
| [`functional/no-conditional-statement`](../rules/no-conditional-statement.md) | `no-if-statement` |
65-
| [`functional/no-loop-statement`](../rules/no-loop-statement.md) | `no-loop-statement` |
66-
| [`functional/no-return-void`](../rules/no-return-void.md) | - |
67-
| [`functional/no-throw-statement`](../rules/no-throw-statement.md) | `no-throw` |
68-
| [`functional/no-try-statement`](../rules/no-try-statement.md) | `no-try` |
69-
| [`functional/no-promise-reject`](../rules/no-promise-reject.md) | `no-reject` |
70-
| [`functional/functional-parameters`](../rules/functional-parameters.md) | - |
54+
| Replacement Rule | Equivalent `tslint-immutable` Rules |
55+
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------- |
56+
| [`@typescript-eslint/prefer-readonly-parameter-types`](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/src/rules/prefer-readonly-parameter-types.ts) & [`prefer-readonly-type-alias`](../rules/prefer-readonly-type-alias.md) | `readonly-keyword` & `readonly-array` |
57+
| [`functional/no-let`](../rules/no-let.md) | `no-let` |
58+
| [`functional/immutable-data`](../rules/immutable-data.md) | `no-object-mutation`, `no-array-mutation` & `no-delete` |
59+
| [`functional/no-method-signature`](../rules/no-method-signature.md) | `no-method-signature` |
60+
| [`functional/no-this-expression`](../rules/no-this-expression.md) | `no-this` |
61+
| [`functional/no-class`](../rules/no-class.md) | `no-class` |
62+
| [`functional/no-mixed-type`](../rules/no-mixed-type.md) | `no-mixed-interface` |
63+
| [`functional/no-expression-statement`](../rules/no-expression-statement.md) | `no-expression-statement` |
64+
| [`functional/no-conditional-statement`](../rules/no-conditional-statement.md) | `no-if-statement` |
65+
| [`functional/no-loop-statement`](../rules/no-loop-statement.md) | `no-loop-statement` |
66+
| [`functional/no-return-void`](../rules/no-return-void.md) | - |
67+
| [`functional/no-throw-statement`](../rules/no-throw-statement.md) | `no-throw` |
68+
| [`functional/no-try-statement`](../rules/no-try-statement.md) | `no-try` |
69+
| [`functional/no-promise-reject`](../rules/no-promise-reject.md) | `no-reject` |
70+
| [`functional/functional-parameters`](../rules/functional-parameters.md) | - |

0 commit comments

Comments
 (0)