@0zd0/nx-oxfmt
v0.1.1
Published
An Nx plugin for [oxfmt](https://oxc.rs/docs/guide/usage/formatter.html) - the high-performance JavaScript/TypeScript formatter.
Readme
nx-oxfmt
An Nx plugin for oxfmt - the high-performance JavaScript/TypeScript formatter.
Install
nx add @0zd0/nx-oxfmtRun Formatting:
nx run your-project:fmtor
nx run-many --target fmtExecutor Options
All options are optional. The executor defaults to writing changes in place.
check(optional) - Check if files are formatted, show statistics (default:false)write(optional) - Format and write files in place (default:true)listDifferent(optional) - List files that would be changed (default:false)config(optional) - Path to the configuration file (default: auto-detected by oxfmt)ignorePath(optional) - Path to ignore file(s) (default:.gitignoreand.prettierignore)threads(optional) - Number of threads to use (default: auto-detected)withNodeModules(optional) - Format code in node_modules directory (default:false)noErrorOnUnmatchedPattern(optional) - Do not exit with error when pattern is unmatched (default:false)additionalArguments(optional) - Additional arguments to pass to oxfmt as a string
Configuration
If no config file is passed, oxfmt will automatically look for configuration files (e.g. .oxfmtrc.json).
See oxfmt documentation for configuration options.
