Skip to content

What is the best approach when a package depends on another package? #2619

Open
@misogihagi

Description

@misogihagi

Hello.
I am using eslint and third party plugins. They are controlled by npm(package.json).

For example, without devbox, eslint needs to install the 3rd party plugins in package.json.

package.json:

{
...
  "devDependencies": {  
    "eslint": "^8.20.0",
    "eslint-plugin-react": "^7.30.1",
...
}

and configuration(.eslintrc.json):

{
    "extends": [
        "eslint:recommended",
        "plugin:react/recommended"
    ]
}

On the other hand, what is the best solution for devbox?
Include the dependencies in package.json as mentioned earlier

or devbox.json?

devbox.json:

{
...
  "packages": [
    "nodePackages.eslint@latest",
    "nodePackages.eslint-plugin-react@latest",
  ],
...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions