Comments (10)
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.
i update my issue with the reproduction repo let me now if you need something else
from eslint-plugin-astro.
Maybe this can be relevant too i get this error every time i create a file
from eslint-plugin-astro.
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.
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
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.
Please provide a repository that reproduces the remaining issue.
from eslint-plugin-astro.
from eslint-plugin-astro.
I tried using your repository but cannot reproduce the problem.
from eslint-plugin-astro.
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
from eslint-plugin-astro.
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)
- Parse errors in imported module 'http-status-codes': parser.parse is not a function (undefined:undefined) HOT 6
- Question: whatβs the best scope to address missing default export of Astro components? HOT 2
- document cause no-undef error
- Docs site renders : book : instead of :book: HOT 1
- Parsing error (',' expected) in <script> with typescript HOT 10
- Type declaration in script causes eslint parsing error HOT 2
- docs: Add `parser: "@typescript-eslint/parser",` HOT 3
- Add notes on interop with eslint-plugin-import to docs HOT 2
- Missing lint errors on <script> HOT 3
- Error when I use Chinese HOT 2
- In Astro files: "Parsing error: JSX expressions must have one parent element." HOT 1
- New rule for client:only directive to have a value depending on the framework used HOT 3
- Add new rule: disallow-exports-from-components HOT 5
- Parsing error: unknown token HOT 2
- Docs: Mention `"eslint.experimental.useFlatConfig"` for IDE Settings HOT 3
- no-shadow in astro file HOT 1
- Types imported from Astro file are not working correctly HOT 1
- Using glob patterns in `project` key does not work.
- Default export of an Astro component has a type `any`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eslint-plugin-astro.