cmy 02a04f55a0 2023-3-15 2 years ago
..
.github 02a04f55a0 2023-3-15 2 years ago
.vscode 02a04f55a0 2023-3-15 2 years ago
test 02a04f55a0 2023-3-15 2 years ago
.editorconfig 02a04f55a0 2023-3-15 2 years ago
.eslintignore 02a04f55a0 2023-3-15 2 years ago
.eslintrc.js 02a04f55a0 2023-3-15 2 years ago
.prettierignore 02a04f55a0 2023-3-15 2 years ago
.prettierrc 02a04f55a0 2023-3-15 2 years ago
LICENSE.md 02a04f55a0 2023-3-15 2 years ago
README.md 02a04f55a0 2023-3-15 2 years ago
index.js 02a04f55a0 2023-3-15 2 years ago
package.json 02a04f55a0 2023-3-15 2 years 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