-
-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Labels
BREAKING CHANGEThis change will require a major version bumpThis change will require a major version bumpaccepted
Description
The no-deprecated-context-methods could catch additional methods:
getAncestors()->SourceCode#getAncestors(node)getDeclaredVariables()->SourceCode#getDeclaredVariables(node)getScope()->SourceCode#getScope(node)markVariableAsUsed(name)->SourceCode#markVariableAsUsed(name, node)
There's also a property we could catch:
parserServices->SourceCode#parserServices
Note that there's a challenge of supporting both styles in order to support both ESLint v8 and v9, as in:
I'm not sure if this is autofixable as a new node parameter needs to be captured and passed.
These deprecated members are being removed in ESLint v9:
- Change Request: Remove deprecated context pass-through SourceCode methods eslint/eslint#17520
- feat!: Remove deprecated context methods eslint/eslint#17698
See:
mdjermanovic
Metadata
Metadata
Assignees
Labels
BREAKING CHANGEThis change will require a major version bumpThis change will require a major version bumpaccepted