Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/prettier/prettier-linter-helpers
Helper functions for exposing prettier changes within linting tools
https://github.com/prettier/prettier-linter-helpers
diff prettier
Last synced: about 2 months ago
JSON representation
Helper functions for exposing prettier changes within linting tools
- Host: GitHub
- URL: https://github.com/prettier/prettier-linter-helpers
- Owner: prettier
- License: mit
- Created: 2018-10-01T04:02:08.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-08-02T05:57:21.000Z (about 3 years ago)
- Last Synced: 2024-04-14T01:50:32.880Z (5 months ago)
- Topics: diff, prettier
- Language: JavaScript
- Size: 73.2 KB
- Stars: 17
- Watchers: 4
- Forks: 7
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# prettier-linter-helpers
Helper functions for exposing prettier changes within linting tools.
This package contains:
- `showInvisibles(string)` - Replace invisible characters with ones you can see for
for easier diffing.
- `generateDifferences(source, prettierSource)` - Generate an array of
differences between two strings.## Inspiration
This code was extracted from [eslint-plugin-prettier v2.7.0](https://github.com/prettier/eslint-plugin-prettier/blob/9fac6b4039c1983b83073fa7af7864f0d7e1f2d3/eslint-plugin-prettier.js#L85-L215)