npm.io
1.0.1 • Published 6 months ago

prettier-linter-helpers

Licence
MIT
Version
1.0.1
Deps
1
Size
8 kB
Vulns
0
Weekly
0
Stars
22

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