Thanks to visit codestin.com
Credit goes to github.com

Skip to content

kamitchell/pre-commit-xml-plugin-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Example of problems loading xml plugin

Example with pre-commit

  1. Install pre-commit
  2. Run pre-commit on all files
❯ pre-commit run --all
prettier.................................................................Failed
- hook id: prettier
- exit code: 1

[error] Cannot find package '@prettier/plugin-xml' imported from /Users/kevin/src/pre-commit-xml-plugin-example/noop.js

Example with installing prettier globally

❯ npm install -g prettier @prettier/plugin-xml
…
❯ prettier --plugin=@prettier/plugin-xml example.xml
[error] Cannot find package '@prettier/plugin-xml' imported from /Users/kevin/src/pre-commit-xml-plugin-example/noop.js

Config file

I even tried adding a require statement to .prettierrc.js, as mentioned in this comment.

But that doesn't help either.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors