Page MenuHomePhabricator

[arclint] Expand scope of `prettier` linter
ClosedPublic

Authored by bytesofman on Apr 26 2023, 18:46.

Details

Reviewers
PiRK
Group Reviewers
Restricted Project
Commits
rABCef128a081bf8: [arclint] Expand scope of `prettier` linter
Summary

T3147

Depends on D13797

Expand target of prettier linter in arclint to include all relevant files in the monorepo and not just the web/ directory.
Add chronik-client .prettierignore targets to the exclude array

Test Plan

arc lint --everything

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Apr 27 2023, 12:23

This causes a lot of lint errors and warnings in existing documentation, including archived release notes.

I have prettier 2.8.2 installed

In D13798#307611, @PiRK wrote:

This causes a lot of lint errors and warnings in existing documentation, including archived release notes.

I have prettier 2.8.2 installed

OK will check this out and see if a patch is more appropriate than revoking. But let me know if we need to just pull this out.

Fabien added inline comments.
.arclint
289

It might be enough to remove the md files

OK -- i'm running some tests now and excluding some directories. Going forward, will need to lint those directories first if we decide we want .arclint to apply prettier there

OK -- i'm running some tests now and excluding some directories. Going forward, will need to lint those directories first if we decide we want .arclint to apply prettier there

Yes.

Your test plan was running arc lint --everything so I expect all the files linted properly but this is not the case. The test plan doesn't pass, was not run and the diff should be reverted.

OK -- i'm running some tests now and excluding some directories. Going forward, will need to lint those directories first if we decide we want .arclint to apply prettier there

Yes.

Your test plan was running arc lint --everything so I expect all the files linted properly but this is not the case. The test plan doesn't pass, was not run and the diff should be reverted.

D13809