@@ -11,7 +11,7 @@ use serde::{Deserialize, Serialize};
1111use oxc_diagnostics:: { DiagnosticSender , DiagnosticService , OxcDiagnostic , Severity } ;
1212use oxc_span:: { SourceType , Span } ;
1313
14- use super :: { AllowWarnDeny , ConfigStore , LintServiceOptions , ResolvedLinterState , read_to_string} ;
14+ use super :: { AllowWarnDeny , ConfigStore , ResolvedLinterState , read_to_string} ;
1515
1616/// State required to initialize the `tsgolint` linter.
1717#[ derive( Debug , Clone ) ]
@@ -27,16 +27,11 @@ pub struct TsGoLintState<'a> {
2727}
2828
2929impl < ' 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 {
3531 TsGoLintState {
3632 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 ( ) ,
4035 paths,
4136 }
4237 }
0 commit comments