-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Error while loading rule '@stylistic/indent': Cannot read properties of undefined (reading 'length') #293
Comments
Added example on stackblitz... |
Note: You can also use |
Thank you for reply @nzakas. I followed your suggestion and changed my config like this: https://stackblitz.com/edit/stackblitz-starters-jf9eon?file=eslint.config.mjs
where const stylisticConfig = stylistic.configs.customize({
braceStyle: '1tbs',
commaDangle: 'never',
jsx: false,
}) But this time it started to throw new error:
It goes away if I comment off markdown at the bottom of the config. PS: I am not able to reopen this issue, so maybe you could? Thanks... |
It's the same problem - you're running JS rules on Markdown files. Use |
Environment
ESLint version: 9.12.0
@eslint/markdown version: 6.2.0
Node version: 20.12.2
npm version: 10.8.3
Operating System: macOS 15.0.1
Which language are you using?
gfm
What did you do?
Configuration
My README looks roughly like this:
What did you expect to happen?
It would work
What actually happened?
I am getting an error:
Link to Minimal Reproducible Example
https://stackblitz.com/edit/stackblitz-starters-tu4l2x?file=eslint.config.mjs&view=editor
Participation
Additional comments
No response
The text was updated successfully, but these errors were encountered: