lhl 2bdf874dbb create 11 months ago
..
.github 2bdf874dbb create 11 months ago
.vscode 2bdf874dbb create 11 months ago
test 2bdf874dbb create 11 months ago
.editorconfig 2bdf874dbb create 11 months ago
.eslintignore 2bdf874dbb create 11 months ago
.eslintrc.js 2bdf874dbb create 11 months ago
.prettierignore 2bdf874dbb create 11 months ago
.prettierrc 2bdf874dbb create 11 months ago
LICENSE.md 2bdf874dbb create 11 months ago
README.md 2bdf874dbb create 11 months ago
index.js 2bdf874dbb create 11 months ago
package.json 2bdf874dbb create 11 months ago

README.md

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