prettier / prettier-eslint

Code :arrow_right: prettier :arrow_right: eslint --fix :arrow_right: Formatted Code :sparkles:
http://npm.im/prettier-eslint
MIT License
3.96k stars 171 forks source link

How to use it? #960

Closed rantiev closed 4 months ago

rantiev commented 4 months ago

Reading docs i have no clue on how to use this npm module. Is it a cli, or should it run manually? Should i create a node script which connect each file and runs this module format + analyze on them?

Looks like some wet solution.

JounQin commented 4 months ago

For API: https://github.com/prettier/prettier-eslint?tab=readme-ov-file#usage

For cli, it's a seperate npm package: https://github.com/prettier/prettier-eslint-cli?tab=readme-ov-file#usage