eslint-plugin-dprint icon indicating copy to clipboard operation
eslint-plugin-dprint copied to clipboard

how is the version of dprint and typescript plugin configured

Open adrian-gierakowski opened this issue 2 years ago • 3 comments

Does this ship with a fixed version of dprint and it's typescript plugin? If so, can I make it use specific versions of these?

Btw. given that there has not been any commits to this repo since 2020, is there another recommended way to use dprint in a project which already uses eslint? Thanks!

adrian-gierakowski avatar Jul 20 '22 15:07 adrian-gierakowski

@adrian-gierakowski I'd just run eslint and dprint separately. You can add the command to your linting script alongside eslint in package.json, in your CI, in .pre-commit, etc.

You can take a look at this plugin's config to give you some ideas of what to disable in your own eslint config. Basically anything stylistic that dprint can take care of, to speedup eslint.

Avasam avatar Sep 28 '22 17:09 Avasam

Thanks @Avasam, that’s what I ended up doing :)

adrian-gierakowski avatar Sep 28 '22 18:09 adrian-gierakowski

Hi everybody, I made a new plugin because this project is dead. Here it is: https://github.com/so1ve/eslint-plugin-dprint-integration. It does not pin dprint-plugin-typescript's version and supports more kinds of files. And it is also more configurable (you can customize the settings for each file type). It works like what eslint-plugin-prettier does and provides supports eslint 8 but it may be slower than native dprint. If you are interested in it, please try it out (sorry the documents are WIP now, but will come soon) and feedback to me, thanks!

so1ve avatar Mar 27 '23 06:03 so1ve