Closed as duplicate
Description
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
Labels
No labels
Type
Projects
Status
Complete