Skip to content

Problems with loading .eslintrc #83

Closed as not planned
Closed as not planned

Description

There seems to be an issue with loading the .eslintrc file:

Cannot read config file: /Users/sh/projects/tests/delete_me/.eslintrc.js Error: require() of ES Module
/Users/sh/projects/tests/delete_me/.eslintrc.js from
/Users/sh/projects/tests/delete_me/node_modules/@eslint/eslintrc/dist/eslintrc.cjs not supported. Instead change the
require of .eslintrc.js in /Users/sh/projects/tests/delete_me/node_modules/@eslint/eslintrc/dist/eslintrc.cjs to a dynamic
import() which is available in all CommonJS modules.

ESlint related dependency versions:
image

In order to reproduce this issue, you can just initialise a Svelte project with having the eslint / prettier enabled, by running this:
npm init svelte@next.

PS project type set to module.

cc @mdjermanovic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    • Status

      Complete

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions