Skip to content

Commit

Permalink
add a note in vscode section (#290)
Browse files Browse the repository at this point in the history
* add a note in vscode section

This node is regarding a fix introduced in prettier-vscode 3.8.0 around Nov 2019 causing vscode settings to be ignored.

* concise the overrides part
  • Loading branch information
zemse committed Jun 11, 2020
1 parent 20931d0 commit c502bb9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ You'll notice now that `prettier` is formatting every time the files are saved b
}
```

Note: When you install the npm package `prettier` in your project and create a `.prettierrc` file (which wasn't in your project before this), your VSCode's default settings or rules in `settings.json` are ignored ([prettier/prettier-vscode#1079](https://github.com/prettier/prettier-vscode/issues/1079)).

If you want a different configuration for your javascript and solidity files, you can add an [overrides property](https://prettier.io/docs/en/configuration.html#configuration-overrides) to your `.prettierrc`.

## Contributing

1. [Fork it](https://github.com/prettier-solidity/prettier-plugin-solidity/fork)
Expand Down

0 comments on commit c502bb9

Please sign in to comment.