Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/auroratide/svelte-eslint-range-bug


https://github.com/auroratide/svelte-eslint-range-bug

Last synced: about 14 hours ago
JSON representation

Awesome Lists containing this project

README

        

# Eslint crash with typescript and svelte

**Error:**
```
TypeError: Cannot read properties of null (reading 'range')
Occurred while linting /Users/auroratide/Projects/tmp/svelte-eslint-range-bug/src/Root.svelte:1
Rule: "indent"
```

**What to do:**
```
pnpm install
pnpm lint
```

**The code that breaks this:**

<Component num={num ?? 1} />

* Seems to only happen with Typescript
* Only happens if the `indent` rule is set in eslint config