File tree Expand file tree Collapse file tree 2 files changed +1
-27
lines changed Expand file tree Collapse file tree 2 files changed +1
-27
lines changed Original file line number Diff line number Diff line change @@ -1186,25 +1186,7 @@ export namespace Rule {
1186
1186
RuleOptions : any [ ] ;
1187
1187
Node : JSSyntaxElement ;
1188
1188
MessageIds : string ;
1189
- } > {
1190
- /*
1191
- * Need to extend the `RuleContext` interface to include the
1192
- * deprecated methods that have not yet been removed.
1193
- * TODO: Remove in v10.0.0.
1194
- */
1195
-
1196
- /** @deprecated Use `sourceCode.getAncestors()` instead */
1197
- getAncestors ( ) : ESTree . Node [ ] ;
1198
-
1199
- /** @deprecated Use `sourceCode.getDeclaredVariables()` instead */
1200
- getDeclaredVariables ( node : ESTree . Node ) : Scope . Variable [ ] ;
1201
-
1202
- /** @deprecated Use `sourceCode.getScope()` instead */
1203
- getScope ( ) : Scope . Scope ;
1204
-
1205
- /** @deprecated Use `sourceCode.markVariableAsUsed()` instead */
1206
- markVariableAsUsed ( name : string ) : boolean ;
1207
- }
1189
+ } > { }
1208
1190
1209
1191
type ReportFixer = (
1210
1192
fixer : RuleFixer ,
Original file line number Diff line number Diff line change @@ -625,10 +625,6 @@ rule = {
625
625
626
626
rule = {
627
627
create ( context : Rule . RuleContext ) {
628
- context . getAncestors ( ) ;
629
-
630
- context . getDeclaredVariables ( AST ) ;
631
-
632
628
context . filename ;
633
629
634
630
context . getFilename ( ) ;
@@ -653,16 +649,12 @@ rule = {
653
649
context . getSourceCode ( ) ;
654
650
context . getSourceCode ( ) . getLocFromIndex ( 42 ) ;
655
651
656
- context . getScope ( ) ;
657
-
658
652
if ( typeof context . parserPath === "string" ) {
659
653
context . parserPath ;
660
654
} else {
661
655
context . languageOptions ?. parser ;
662
656
}
663
657
664
- context . markVariableAsUsed ( "foo" ) ;
665
-
666
658
// @ts -expect-error wrong `node` type
667
659
context . report ( { message : "foo" , node : { } } ) ;
668
660
You can’t perform that action at this time.
0 commit comments