Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Commit

Permalink
docs(website): add section to explain how fixes work (#3173)
Browse files Browse the repository at this point in the history
Co-authored-by: Micha Reiser <[email protected]>
  • Loading branch information
ematipico and MichaReiser authored Sep 7, 2022
1 parent dd61588 commit 8af046c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions website/src/_includes/docs/linter.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,17 @@ declare const Foo: number;
// rome-ignore lint(js/noUnusedVariables): reason
declare const Bar: number;
```


### Code fixes

Lint rules may provide automatic code fixes. Rome distinguishes between two types of fixes:

* safe fixes
* suggested fixes

Safe fixes are guaranteed to not change the semantics of your code,
and can be applied without explicit review.

Suggested fixes may change the semantics of your program, and it's,
therefore, advised to manually review the changes.

0 comments on commit 8af046c

Please sign in to comment.