Skip to content

@nx/oxlint - Generators

The @nx/oxlint plugin provides various generators to help you create and configure oxlint projects within your Nx workspace. Below is a complete reference for all available generators and their options.

For an overview of the plugin and setup instructions, see the @nx/oxlint introduction.

Register @nx/oxlint and enable this project’s Oxlint plugins.

Usage:

Terminal window
nx generate @nx/oxlint:configuration [options]
OptionTypeDescriptionDefault
--projectstring [required]The name of the project.
--keepExistingVersionsbooleanKeep existing dependency versions when possible.false
--pluginsarrayOxlint plugins to enable for this project, such as react or jsx-a11y.[]
--skipFormatbooleanSkip formatting files.false
--skipPackageJsonbooleanDo not add dependencies to package.json.false

You can get help for any generator by adding the --help flag:

Terminal window
nx generate @nx/oxlint:<generator> --help