Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/auroratide/svelte-eslint-range-bug
https://github.com/auroratide/svelte-eslint-range-bug
Last synced: about 14 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/auroratide/svelte-eslint-range-bug
- Owner: Auroratide
- Created: 2024-02-28T01:23:56.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-02-28T01:27:30.000Z (8 months ago)
- Last Synced: 2024-02-28T02:35:06.268Z (8 months ago)
- Language: JavaScript
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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