Dev dependencies in typescript

Place CLI tool dependencies in the `devDependencies` section of `package.json` instead of `dependencies` when they are only used for local development, scripts, or tooling.
Bad:
```json
{
  "dependencies": {
    "@eslint/eslintrc": "^3",
    "@tailwindcss/postcss": "^4.1.6",

Install this rule for wispbit

Add this rule to wispbit and it will run when you open a pull request

Install this rule for Coderabbit

Copy the configuration below and add it to your repository as .coderabbit.yml in your project root.

reviews:
  path_instructions:
    - path: "package.json"
      instructions: |
                
        Place CLI tool dependencies in the `devDependencies` section of `package.json` instead of `dependencies` when they are only used for local development, scripts, or tooling.
        
        Bad:
        
        ```json
        {
          "dependencies": {
            "@eslint/eslintrc": "^3",
            "@tailwindcss/postcss": "^4.1.6",
            "@types/node": "^20"
          }
        }
        ```
        
        Good:
        
        ```json
        {
          "devDependencies": {
            "@eslint/eslintrc": "^3",
            "@tailwindcss/postcss": "^4.1.6",
            "@types/node": "^20"
          }
        }
        ```
        

Install this rule for Greptile

Greptile rules can be added through the web interface. Please see this documentation for details on how to add custom rules and context.

Place CLI tool dependencies in the `devDependencies` section of `package.json` instead of `dependencies` when they are only used for local development, scripts, or tooling.
Bad:
```json
{
  "dependencies": {
    "@eslint/eslintrc": "^3",
    "@tailwindcss/postcss": "^4.1.6",
    "@types/node": "^20"
  }
}
```
Good:
```json
{
  "devDependencies": {
    "@eslint/eslintrc": "^3",
    "@tailwindcss/postcss": "^4.1.6",
    "@types/node": "^20"
  }
}
```

File Path Patterns:

package.json

Install this rule for GitHub Copilot

Copilot instructions can be added through the interface. See the documentation for details on how to create coding guidelines.

Place CLI tool dependencies in the `devDependencies` section of `package.json` instead of `dependencies` when they are only used for local development, scripts, or tooling.
Bad:
```json
{
  "dependencies": {
    "@eslint/eslintrc": "^3",
    "@tailwindcss/postcss": "^4.1.6",
    "@types/node": "^20"
  }
}
```
Good:
```json
{
  "devDependencies": {
    "@eslint/eslintrc": "^3",
    "@tailwindcss/postcss": "^4.1.6",
    "@types/node": "^20"
  }
}
```

File Path Patterns:

package.json

Install this rule for Graphite Diamond

Diamond custom rules can be added through the interface. See the documentation for details on how to create custom rules.

Place CLI tool dependencies in the `devDependencies` section of `package.json` instead of `dependencies` when they are only used for local development, scripts, or tooling.
Bad:
```json
{
  "dependencies": {
    "@eslint/eslintrc": "^3",
    "@tailwindcss/postcss": "^4.1.6",
    "@types/node": "^20"
  }
}
```
Good:
```json
{
  "devDependencies": {
    "@eslint/eslintrc": "^3",
    "@tailwindcss/postcss": "^4.1.6",
    "@types/node": "^20"
  }
}
```

File Path Patterns:

package.json

Use with Cline

Copy the rule below and ask Cline to review your code using this rule

Place CLI tool dependencies in the `devDependencies` section of `package.json` instead of `dependencies` when they are only used for local development, scripts, or tooling.
Bad:
```json
{
  "dependencies": {
    "@eslint/eslintrc": "^3",
    "@tailwindcss/postcss": "^4.1.6",
    "@types/node": "^20"
  }
}
```
Good:
```json
{
  "devDependencies": {
    "@eslint/eslintrc": "^3",
    "@tailwindcss/postcss": "^4.1.6",
    "@types/node": "^20"
  }
}
```

Use with OpenAI Codex

Copy the rule below and ask OpenAI Codex to review your code using this rule

Place CLI tool dependencies in the `devDependencies` section of `package.json` instead of `dependencies` when they are only used for local development, scripts, or tooling.
Bad:
```json
{
  "dependencies": {
    "@eslint/eslintrc": "^3",
    "@tailwindcss/postcss": "^4.1.6",
    "@types/node": "^20"
  }
}
```
Good:
```json
{
  "devDependencies": {
    "@eslint/eslintrc": "^3",
    "@tailwindcss/postcss": "^4.1.6",
    "@types/node": "^20"
  }
}
```

Use with Cursor

Copy the rule below and ask Cursor to review your code using this rule

Place CLI tool dependencies in the `devDependencies` section of `package.json` instead of `dependencies` when they are only used for local development, scripts, or tooling.
Bad:
```json
{
  "dependencies": {
    "@eslint/eslintrc": "^3",
    "@tailwindcss/postcss": "^4.1.6",
    "@types/node": "^20"
  }
}
```
Good:
```json
{
  "devDependencies": {
    "@eslint/eslintrc": "^3",
    "@tailwindcss/postcss": "^4.1.6",
    "@types/node": "^20"
  }
}
```

Use with Claude Code

Copy the rule below and ask Claude Code to review your code using this rule

Place CLI tool dependencies in the `devDependencies` section of `package.json` instead of `dependencies` when they are only used for local development, scripts, or tooling.
Bad:
```json
{
  "dependencies": {
    "@eslint/eslintrc": "^3",
    "@tailwindcss/postcss": "^4.1.6",
    "@types/node": "^20"
  }
}
```
Good:
```json
{
  "devDependencies": {
    "@eslint/eslintrc": "^3",
    "@tailwindcss/postcss": "^4.1.6",
    "@types/node": "^20"
  }
}
```

Install this rule for Windsurf

To set up rules for Windsurf Reviews, please see this documentation

Place CLI tool dependencies in the `devDependencies` section of `package.json` instead of `dependencies` when they are only used for local development, scripts, or tooling.
Bad:
```json
{
  "dependencies": {
    "@eslint/eslintrc": "^3",
    "@tailwindcss/postcss": "^4.1.6",
    "@types/node": "^20"
  }
}
```
Good:
```json
{
  "devDependencies": {
    "@eslint/eslintrc": "^3",
    "@tailwindcss/postcss": "^4.1.6",
    "@types/node": "^20"
  }
}
```