Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

Definition for rule @typescript-eslint/space-before-blocks was not found #300

Open
robertwt7 opened this issue May 17, 2022 · 2 comments
Open

Comments

@robertwt7
Copy link

image

Enabling this plugin gives me this error:

Definition for rule '@typescript-eslint/space-before-blocks' was not found.eslint(@typescript-eslint/space-before-blocks)

Is this expected? I have installed the package in the readme.md then I still got this one

@chanp-ark
Copy link

chanp-ark commented Jul 26, 2022

Seems like this was resolved with the major upgrade to 17.0.0

https://github.com/iamturns/eslint-config-airbnb-typescript/releases/tag/v17.0.0

Edit: The upgrade to 17.0.0 doesn't resolve this issue. The release notes mention a requirement of @typescript-eslint/eslint-plugin: ^5.13.0. Mine is currently at 5.24.0 so that shouldn't be the reason for the issue. Downgrading to 16.1.4 for now. I'm also wondering if this is an error specifically in CRA and not others

@DalSoft
Copy link

DalSoft commented Sep 12, 2022

I'm was facing the same issue. But this issue does resolve if you update your packages, delete node_modules and yarn.lock, then run yarn install again and your good to go. I suspect a legacy package was lurking around causing issues.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants