Coder Social home page Coder Social logo

Comments (10)

ota-meshi avatar ota-meshi commented on May 18, 2024 1

I think you first need to add the eslint-plugin-import configuration for TypeScript. Could you please try it?

https://github.com/import-js/eslint-plugin-import#typescript

from eslint-plugin-astro.

TheElegantCoding avatar TheElegantCoding commented on May 18, 2024

i update my issue with the reproduction repo let me now if you need something else

from eslint-plugin-astro.

TheElegantCoding avatar TheElegantCoding commented on May 18, 2024

Maybe this can be relevant too i get this error every time i create a file
image

from eslint-plugin-astro.

TheElegantCoding avatar TheElegantCoding commented on May 18, 2024

i try to solved the issue thankswhit something smilar in #274

    'import/parsers': {
      'astro-eslint-parser': ['.astro'],
      'espree': ['.js'],
    }

but still dont work

from eslint-plugin-astro.

TheElegantCoding avatar TheElegantCoding commented on May 18, 2024

yes that help me, but i still have the issue when i create a new file every time Parsing error: "parserOptions.programs" has been provided for @typescript-eslint/parser.

in my personal config i have set up this, the overrides are just rules

image

and even if i use the recommended config the issue is the same

{
  "root": true,
  "extends": [
    "elegant-coding",
    "elegant-coding/typescript",
    "elegant-coding/jsx_a11y",
    "plugin:astro/base",
    "plugin:astro/recommended"
  ],
}

from eslint-plugin-astro.

ota-meshi avatar ota-meshi commented on May 18, 2024

Please provide a repository that reproduces the remaining issue.

from eslint-plugin-astro.

TheElegantCoding avatar TheElegantCoding commented on May 18, 2024

Repo

from eslint-plugin-astro.

ota-meshi avatar ota-meshi commented on May 18, 2024

I tried using your repository but cannot reproduce the problem.

from eslint-plugin-astro.

ota-meshi avatar ota-meshi commented on May 18, 2024

It looks like you haven't tried the following settings yet. I think you should do that first.

https://github.com/import-js/eslint-plugin-import#typescript

https://github.com/TheElegantCoding/import_resolver_astro/blob/d82f45a3636317cfd8f617211e990cb32cd0144b/.eslintrc#L6-L9

from eslint-plugin-astro.

ota-meshi avatar ota-meshi commented on May 18, 2024

I've spent time on this issue, but I can't reproduce your issue so I'm closing this issue.
If the issue still occurs, please open a new issue, provide details, and be sure to provide a repository where we can reproduce the issue.

from eslint-plugin-astro.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.