Skip to content

Commit

Permalink
Add no-reassign-params (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
elicwhite authored and cpojer committed Feb 23, 2018
1 parent a4d5290 commit a18ee72
Show file tree
Hide file tree
Showing 3 changed files with 651 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@ jscodeshift -t js-codemod/transforms/invalid-requires.js <file>
jscodeshift -t js-codemod/transforms/jest-update.js <file>
```

#### `no-reassign-params`

Converts functions to not reassign to parameters. This is useful to turn on in conjunction with [Flow's const_params](https://flow.org/en/docs/config/options/#toc-experimental-const-params-boolean) option.

```sh
jscodeshift -t js-codemod/transforms/no-reassign-params.js <file>
```

#### `no-vars`

Conservatively converts `var` to `const` or `let`.
Expand Down
Loading

0 comments on commit a18ee72

Please sign in to comment.