Skip to content

Commit

Permalink
docs: update tslint migration
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaStevens committed Aug 2, 2021
1 parent c905047 commit 93eaff0
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions docs/user-guide/migrating-from-tslint.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,20 @@ In order for the parser to have access to type information, it needs access to y

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

| `eslint-plugin-functional` Rule | Equivalent `tslint-immutable` Rules |
| ----------------------------------------------------------------------------- | ------------------------------------------------------- |
| [`functional/prefer-readonly-type`](../rules/prefer-readonly-type.md) | `readonly-keyword` & `readonly-array` |
| [`functional/no-let`](../rules/no-let.md) | `no-let` |
| [`functional/immutable-data`](../rules/immutable-data.md) | `no-object-mutation`, `no-array-mutation` & `no-delete` |
| [`functional/no-method-signature`](../rules/no-method-signature.md) | `no-method-signature` |
| [`functional/no-this-expression`](../rules/no-this-expression.md) | `no-this` |
| [`functional/no-class`](../rules/no-class.md) | `no-class` |
| [`functional/no-mixed-type`](../rules/no-mixed-type.md) | `no-mixed-interface` |
| [`functional/no-expression-statement`](../rules/no-expression-statement.md) | `no-expression-statement` |
| [`functional/no-conditional-statement`](../rules/no-conditional-statement.md) | `no-if-statement` |
| [`functional/no-loop-statement`](../rules/no-loop-statement.md) | `no-loop-statement` |
| [`functional/no-return-void`](../rules/no-return-void.md) | - |
| [`functional/no-throw-statement`](../rules/no-throw-statement.md) | `no-throw` |
| [`functional/no-try-statement`](../rules/no-try-statement.md) | `no-try` |
| [`functional/no-promise-reject`](../rules/no-promise-reject.md) | `no-reject` |
| [`functional/functional-parameters`](../rules/functional-parameters.md) | - |
| Replacement Rule | Equivalent `tslint-immutable` Rules |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------- |
| [`@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) | `readonly-keyword` & `readonly-array` |
| [`functional/no-let`](../rules/no-let.md) | `no-let` |
| [`functional/immutable-data`](../rules/immutable-data.md) | `no-object-mutation`, `no-array-mutation` & `no-delete` |
| [`functional/no-method-signature`](../rules/no-method-signature.md) | `no-method-signature` |
| [`functional/no-this-expression`](../rules/no-this-expression.md) | `no-this` |
| [`functional/no-class`](../rules/no-class.md) | `no-class` |
| [`functional/no-mixed-type`](../rules/no-mixed-type.md) | `no-mixed-interface` |
| [`functional/no-expression-statement`](../rules/no-expression-statement.md) | `no-expression-statement` |
| [`functional/no-conditional-statement`](../rules/no-conditional-statement.md) | `no-if-statement` |
| [`functional/no-loop-statement`](../rules/no-loop-statement.md) | `no-loop-statement` |
| [`functional/no-return-void`](../rules/no-return-void.md) | - |
| [`functional/no-throw-statement`](../rules/no-throw-statement.md) | `no-throw` |
| [`functional/no-try-statement`](../rules/no-try-statement.md) | `no-try` |
| [`functional/no-promise-reject`](../rules/no-promise-reject.md) | `no-reject` |
| [`functional/functional-parameters`](../rules/functional-parameters.md) | - |

0 comments on commit 93eaff0

Please sign in to comment.