root 3bf41bf355 update 1 年之前
..
.github 3bf41bf355 update 1 年之前
.vscode 3bf41bf355 update 1 年之前
test 3bf41bf355 update 1 年之前
.editorconfig 3bf41bf355 update 1 年之前
.eslintignore 3bf41bf355 update 1 年之前
.eslintrc.js 3bf41bf355 update 1 年之前
.prettierignore 3bf41bf355 update 1 年之前
.prettierrc 3bf41bf355 update 1 年之前
LICENSE.md 3bf41bf355 update 1 年之前
README.md 3bf41bf355 update 1 年之前
index.js 3bf41bf355 update 1 年之前
package.json 3bf41bf355 update 1 年之前

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