lhl 2bdf874dbb create 1 month ago
..
.github 2bdf874dbb create 1 month ago
.vscode 2bdf874dbb create 1 month ago
test 2bdf874dbb create 1 month ago
.editorconfig 2bdf874dbb create 1 month ago
.eslintignore 2bdf874dbb create 1 month ago
.eslintrc.js 2bdf874dbb create 1 month ago
.prettierignore 2bdf874dbb create 1 month ago
.prettierrc 2bdf874dbb create 1 month ago
LICENSE.md 2bdf874dbb create 1 month ago
README.md 2bdf874dbb create 1 month ago
index.js 2bdf874dbb create 1 month ago
package.json 2bdf874dbb create 1 month 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