Appearance
For JS/TS files, use oxfmt-ignore to skip formatting the next statement:
oxfmt-ignore
// oxfmt-ignore const a = 42; /* oxfmt-ignore */ const x = () => { return 2; }; <> {/* oxfmt-ignore */} <span ugly format="" /> </>;
For non-JS files, use prettier-ignore comment. See also Prettier's ignore documentation.
prettier-ignore
Currently, TOML files do not support ignore comments.
Inline ignore comments
For JS/TS files, use
oxfmt-ignoreto skip formatting the next statement:For non-JS files, use
prettier-ignorecomment. See also Prettier's ignore documentation.Currently, TOML files do not support ignore comments.
Prettier compatibility
prettier-ignorecomment is also supported