### Get Help (CLI) Source: https://github.com/eoussama/dx/blob/main/README.md Commands to access help information for DX and its subcommands. ```bash pnpx dx --help pnpx dx init --help pnpx dx lint --help ``` -------------------------------- ### Install Dependencies with pnpm Source: https://github.com/eoussama/dx/blob/main/README.md Installs project dependencies using pnpm. This command requires pnpm to be installed globally. ```bash pnpm install ``` -------------------------------- ### Build the Project Source: https://github.com/eoussama/dx/blob/main/README.md Compiles the project's code. This command is typically used after installing dependencies during development. ```bash pnpm build ``` -------------------------------- ### Install DX with npm Source: https://github.com/eoussama/dx/blob/main/README.md Use this command to add the DX package to your project when using npm as your package manager. ```bash npm install @eoussama/dx ``` -------------------------------- ### Install DX with pnpm Source: https://github.com/eoussama/dx/blob/main/README.md Use this command to add the DX package to your project when using pnpm as your package manager. ```bash pnpm add @eoussama/dx ``` -------------------------------- ### Install DX with yarn Source: https://github.com/eoussama/dx/blob/main/README.md Use this command to add the DX package to your project when using yarn as your package manager. ```bash yarn add @eoussama/dx ``` -------------------------------- ### Create a New Branch for Contribution Source: https://github.com/eoussama/dx/blob/main/CONTRIBUTING.md Use this command to create a new branch for your feature or bugfix before starting your contribution. ```bash git checkout -b feat/your-feature-name ``` -------------------------------- ### Initialize DX Configuration Source: https://github.com/eoussama/dx/blob/main/README.md Run this command to automatically generate an eslint.config.js file with the default DX configuration. This is the recommended first step for using DX. ```bash pnpx @eoussama/dx init ``` -------------------------------- ### Initialize ESLint Config (CLI) Source: https://github.com/eoussama/dx/blob/main/README.md Command to initialize the eslint.config.js file. This is recommended as the first step when setting up DX. ```bash pnpx dx init ``` -------------------------------- ### Run ESLint Linter Source: https://github.com/eoussama/dx/blob/main/README.md Execute this command to run the ESLint linter on your project using the DX configuration. ```bash pnpx dx lint ``` -------------------------------- ### Default eslint.config.js Source: https://github.com/eoussama/dx/blob/main/README.md This is the default configuration file created by 'pnpx @eoussama/dx init'. It imports and exports the default DX configuration. ```javascript import dx from "@eoussama/dx"; export default dx(); ``` -------------------------------- ### Force Overwrite Config (CLI) Source: https://github.com/eoussama/dx/blob/main/README.md Use this flag with the init command to force overwriting an existing configuration file. ```bash pnpx dx init --force ``` -------------------------------- ### Clone DX Repository Source: https://github.com/eoussama/dx/blob/main/README.md Command to clone the DX project repository from GitHub. ```bash git clone https://github.com/eoussama/dx.git cd dx ``` -------------------------------- ### Run ESLint with Auto-Fix Source: https://github.com/eoussama/dx/blob/main/README.md Use this command to run the ESLint linter and automatically fix any fixable issues found in your project. ```bash pnpx dx lint --fix ``` -------------------------------- ### Override ESLint Rules and Options Source: https://github.com/eoussama/dx/blob/main/README.md Customize the DX configuration by passing an options object to the dx function. This allows overriding specific rules or stylistic options. ```javascript import dx from "@eoussama/dx"; export default dx({ rules: { // Override/add rules here "no-console": "off", "quotes": ["error", "single"], // ... }, // You can also override other options, e.g.: stylistic: { indent: 4, semi: false, }, }); ``` -------------------------------- ### JSDoc Comment Format for Functions Source: https://github.com/eoussama/dx/blob/main/CONTRIBUTING.md All JavaScript/TypeScript functions, classes, and methods must adhere to this JSDoc format. Ensure the @description tag is present and followed by a blank line, with params and returns tags correctly formatted. ```javascript /** * @description * Personal DX config. * * @param {import("@antfu/eslint-config").Options} [options] Antfu's config options. * @returns {import("eslint").Linter.FlatConfig[]} The final config object. */ ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.