Skip to content

Theres a bug in the options #180

Closed as duplicate
Closed as duplicate
@gorritocodes

Description

@gorritocodes

When you run the command, it prompts you for the environment: "Where does your code run?"
It offers two options: "node" or "browser". When you select "node", it says that you lock "browser" instead.

It doesn't install the appropriate packages, because in the generated config file says:

export default defineConfig([
    {
        files: ["**/*.{js,mjs,cjs,ts,mts,cts}"],
        plugins: { js },
        extends: ["js/recommended"],
    },
    { files: ["**/*.js"], languageOptions: { sourceType: "commonjs" } },
    {
        files: ["**/*.{js,mjs,cjs,ts,mts,cts}"],
        languageOptions: { globals: globals.browser }, //instead of globals.node
    },
    tseslint.configs.recommended,
]);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Complete

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions