Page MenuHomePhabricator

clang-format: [JS] pragmas for tslint, tsc.
ClosedPublic

Authored by mprobst on Jan 17 2020, 1:48 AM.

Details

Summary

tslint and tsc (the TypeScript compiler itself) use comment pragmas of
the style:

// tslint:disable-next-line:foo
// @ts-ignore

These must not be wrapped and must stay on their own line, in isolation.
For tslint, this required adding it to the pragma regexp. The comments
starting with @ are already left alone, but this change adds test
coverage for them.

Diff Detail

Event Timeline

mprobst created this revision.Jan 17 2020, 1:48 AM
krasimir accepted this revision.Jan 17 2020, 4:36 AM
This revision is now accepted and ready to land.Jan 17 2020, 4:36 AM
This revision was automatically updated to reflect the committed changes.