### Install nx-biome Plugin Source: https://github.com/gitopslovers/nx-biome/blob/main/README.md Installs the @gitopslovers/nx-biome plugin as a development dependency using npm. ```shell npm i -D @gitopslovers/nx-biome ``` -------------------------------- ### Install nx-biome Plugin Source: https://github.com/gitopslovers/nx-biome/blob/main/plugin/README.md Installs the @gitopslovers/nx-biome plugin as a development dependency using npm. ```shell npm i -D @gitopslovers/nx-biome ``` -------------------------------- ### Configure Biome for an Nx Project Source: https://github.com/gitopslovers/nx-biome/blob/main/README.md Runs the Nx generator to add a Biome configuration file (biome.json) to a specified project. This also sets up a biome-lint target and installs required dependencies if it's the first run. ```shell nx g @gitopslovers/nx-biome:configuration --project ``` -------------------------------- ### API: @gitopslovers/nx-biome:configuration Generator Source: https://github.com/gitopslovers/nx-biome/blob/main/README.md Documentation for the Nx generator that adds Biome configuration to a specified project. It details its usage and available options. ```APIDOC Generator: @gitopslovers/nx-biome:configuration Description: Add Biome configuration to a project. Usage: nx g @gitopslovers/nx-biome:configuration --project projectName Options: - project (string): The name of the project. ``` -------------------------------- ### APIDOC: @gitopslovers/nx-biome:biome-lint Executor Source: https://github.com/gitopslovers/nx-biome/blob/main/plugin/README.md Documentation for the Nx executor that runs the Biome linter on a project. It describes configurable target options and the `lintFilePatterns` option. ```APIDOC @gitopslovers/nx-biome:biome-lint executor: Options: lintFilePatterns: Type: string[] Default: "" Description: One or more files/dirs/globs to pass directly to Biome's lint() method. ``` -------------------------------- ### Run Biome Lint for All Nx Projects Source: https://github.com/gitopslovers/nx-biome/blob/main/README.md Executes the biome-lint target across all projects in the Nx workspace, useful for a full workspace linting pass. ```shell nx run-many --target=biome-lint ``` -------------------------------- ### API: @gitopslovers/nx-biome:biome-lint Executor Source: https://github.com/gitopslovers/nx-biome/blob/main/README.md Documentation for the Nx executor that runs the Biome linter on a project. It notes that target options can be configured in project.json or during invocation. ```APIDOC Executor: @gitopslovers/nx-biome:biome-lint Description: Run Biome linter on a project. Configuration: Target Options can be configured in project.json or when the executor is invoked. Reference: https://nx.dev/configuration/projectjson#targets ``` -------------------------------- ### APIDOC: @gitopslovers/nx-biome:configuration Generator Source: https://github.com/gitopslovers/nx-biome/blob/main/plugin/README.md Documentation for the Nx generator that adds Biome configuration to a project. It details its usage and available options. ```APIDOC @gitopslovers/nx-biome:configuration generator: Usage: nx g @gitopslovers/nx-biome:configuration --project projectName Options: project: Type: string Description: The name of the project. ``` -------------------------------- ### Run Biome Lint for a Single Project Source: https://github.com/gitopslovers/nx-biome/blob/main/plugin/README.md Executes the biome-lint target for a specified Nx project, applying Biome's linting rules. ```shell nx biome-lint {{projectName}} ``` -------------------------------- ### Run Biome Lint for a Single Nx Project Source: https://github.com/gitopslovers/nx-biome/blob/main/README.md Executes the biome-lint target for a specific project within the Nx workspace, applying Biome's linting rules. ```shell nx biome-lint {{projectName}} ``` -------------------------------- ### Run Biome Lint for All Projects Source: https://github.com/gitopslovers/nx-biome/blob/main/plugin/README.md Executes the biome-lint target across all projects in the Nx workspace using the run-many command. ```shell nx run-many --target=biome-lint ``` -------------------------------- ### Configure Biome for an Nx Project Source: https://github.com/gitopslovers/nx-biome/blob/main/plugin/README.md Runs the Nx generator to add a Biome configuration to a specific project. This creates a project-level biome.json and a biome-lint target. The first run also sets up a workspace-root biome.json and configures namedInputs. ```shell nx g @gitopslovers/nx-biome:configuration --project ``` -------------------------------- ### Run Biome Lint for Affected Nx Projects Source: https://github.com/gitopslovers/nx-biome/blob/main/README.md Executes the biome-lint target only for projects affected by recent changes, leveraging Nx's affected command for efficient linting. ```shell nx affected --target=biome-lint ``` -------------------------------- ### nx-biome Configuration Options Source: https://github.com/gitopslovers/nx-biome/blob/main/README.md Defines the available configuration options for the nx-biome project, including parameters for linting and applying fixes. ```APIDOC Options: lintFilePatterns: Type: string[] Default: "" Description: One or more files/dirs/globs to pass directly to Biome's lint method. write: Type: boolean Default: "" Description: Apply the safe fixes when linting the target where Biome is executed. unsafe: Type: boolean Default: "" Description: Apply the unsafe fixes when linting the target where Biome is executed. ``` -------------------------------- ### Run Biome Lint for Affected Projects Source: https://github.com/gitopslovers/nx-biome/blob/main/plugin/README.md Executes the biome-lint target only for projects affected by recent changes, leveraging Nx's affected command. ```shell nx affected --target=biome-lint ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.