Closed
Description
Before You File a Bug Report Please Confirm You Have Done The Following...
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
What version of ESLint are you using?
9.28.0
What version of eslint-plugin-svelte
are you using?
3.9.0
What did you do?
Configuration
'svelte/prefer-const': [
'error',
{
destructuring: 'all',
ignoreReadonly: true,
},
]
I've added option ignoreReadonly
described here:
https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-const/
and then run npm run lint:dev
What did you expect to happen?
No errors
What actually happened?
Error: Key "rules": Key "svelte/prefer-const":
Value {"destructuring":"all","ignoreReadBeforeAssign":false,"ignoreReadonly":true} should NOT have additional properties.
Unexpected property "ignoreReadonly". Expected properties: "destructuring", "ignoreReadBeforeAssign", "excludedRunes".
Link to GitHub Repo with Minimal Reproducible Example
Additional comments
Seems like doc is outdated.
It's need to remove ignoreReadonly
and add ignoreReadBeforeAssign
option.
Metadata
Metadata
Assignees
Labels
No labels