pub struct LintTsConfig { /* private fields */ }Expand description
The deliberately narrow tsconfig view consumed by lint configuration.
No TypeScript strictness switch changes BamTS lint levels; those live only in
bamts.toml and the BamTS profile/CLI surface.
Implementations§
Source§impl LintTsConfig
impl LintTsConfig
Sourcepub fn parse(
root: &ProjectRoot,
config_path: impl AsRef<Path>,
source: &str,
) -> Result<Self, ConfigError>
pub fn parse( root: &ProjectRoot, config_path: impl AsRef<Path>, source: &str, ) -> Result<Self, ConfigError>
Parses only paths, target, module, and moduleResolution.
pub fn target(&self) -> Option<&str>
pub fn module(&self) -> Option<&str>
pub fn module_resolution(&self) -> Option<&str>
pub fn paths(&self) -> &[PathMapping]
Trait Implementations§
Source§impl Clone for LintTsConfig
impl Clone for LintTsConfig
Source§fn clone(&self) -> LintTsConfig
fn clone(&self) -> LintTsConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LintTsConfig
impl Debug for LintTsConfig
impl Eq for LintTsConfig
Source§impl PartialEq for LintTsConfig
impl PartialEq for LintTsConfig
impl StructuralPartialEq for LintTsConfig
Auto Trait Implementations§
impl Freeze for LintTsConfig
impl RefUnwindSafe for LintTsConfig
impl Send for LintTsConfig
impl Sync for LintTsConfig
impl Unpin for LintTsConfig
impl UnsafeUnpin for LintTsConfig
impl UnwindSafe for LintTsConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more