File tree Expand file tree Collapse file tree 1 file changed +2
-16
lines changed
crates/oxc_linter/src/context Expand file tree Collapse file tree 1 file changed +2
-16
lines changed Original file line number Diff line number Diff line change @@ -106,20 +106,6 @@ impl<'a> ContextHost<'a> {
106106 . sniff_for_frameworks ( )
107107 }
108108
109- /// Set the linter configuration for this context.
110- #[ inline]
111- pub fn with_config ( mut self , config : & Arc < LintConfig > ) -> Self {
112- let plugins = config. plugins ;
113- self . config = Arc :: clone ( config) ;
114-
115- if self . plugins != plugins {
116- self . plugins = plugins;
117- return self . sniff_for_frameworks ( ) ;
118- }
119-
120- self
121- }
122-
123109 /// Shared reference to the [`Semantic`] analysis of the file.
124110 #[ inline]
125111 pub fn semantic ( & self ) -> & Semantic < ' a > {
@@ -149,8 +135,8 @@ impl<'a> ContextHost<'a> {
149135 }
150136
151137 #[ inline]
152- pub fn plugins ( & self ) -> LintPlugins {
153- self . plugins
138+ pub fn plugins ( & self ) -> & LintPlugins {
139+ & self . plugins
154140 }
155141
156142 /// Add a diagnostic message to the end of the list of diagnostics. Can be used
You can’t perform that action at this time.
0 commit comments