Appearance
For JS/TS files, use oxfmt-ignore or prettier-ignore to skip formatting:
oxfmt-ignore
prettier-ignore
// oxfmt-ignore const a = 42; /* oxfmt-ignore */ const x = () => { return 2; }; <> {/* oxfmt-ignore */} <span ugly format="" /> </>; const config={ retries:10, timeout:5000 }; // oxfmt-ignore const data=[1,2,3]; /* prettier-ignore */
For non-JS files, use prettier-ignore comment. See also Prettier's ignore documentation.
Currently, TOML files do not support ignore comments.
Inline ignore comments
For JS/TS files, use
oxfmt-ignoreorprettier-ignoreto skip formatting:For non-JS files, use
prettier-ignorecomment. See also Prettier's ignore documentation.Currently, TOML files do not support ignore comments.
Prettier compatibility
prettier-ignorecomments are supported for JS/TS