@@ -11,7 +11,7 @@ use serde::{Deserialize, Serialize};
11
11
use oxc_diagnostics:: { DiagnosticSender , DiagnosticService , OxcDiagnostic , Severity } ;
12
12
use oxc_span:: { SourceType , Span } ;
13
13
14
- use super :: { AllowWarnDeny , ConfigStore , LintServiceOptions , ResolvedLinterState , read_to_string} ;
14
+ use super :: { AllowWarnDeny , ConfigStore , ResolvedLinterState , read_to_string} ;
15
15
16
16
/// State required to initialize the `tsgolint` linter.
17
17
#[ derive( Debug , Clone ) ]
@@ -27,16 +27,11 @@ pub struct TsGoLintState<'a> {
27
27
}
28
28
29
29
impl < ' a > TsGoLintState < ' a > {
30
- pub fn new (
31
- config_store : ConfigStore ,
32
- paths : & ' a Vec < Arc < OsStr > > ,
33
- options : & LintServiceOptions ,
34
- ) -> Self {
30
+ pub fn new ( cwd : & Path , config_store : ConfigStore , paths : & ' a Vec < Arc < OsStr > > ) -> Self {
35
31
TsGoLintState {
36
32
config_store,
37
- executable_path : try_find_tsgolint_executable ( options. cwd ( ) )
38
- . unwrap_or ( PathBuf :: from ( "tsgolint" ) ) ,
39
- cwd : options. cwd ( ) . to_path_buf ( ) ,
33
+ executable_path : try_find_tsgolint_executable ( cwd) . unwrap_or ( PathBuf :: from ( "tsgolint" ) ) ,
34
+ cwd : cwd. to_path_buf ( ) ,
40
35
paths,
41
36
}
42
37
}
0 commit comments