Struct swc_ecma_lints::config::LintConfig
source · [−]#[non_exhaustive]pub struct LintConfig {Show 31 fields
pub no_console: RuleConfig<NoConsoleConfig>,
pub prefer_regex_literals: RuleConfig<PreferRegexLiteralsConfig>,
pub no_alert: RuleConfig<()>,
pub no_debugger: RuleConfig<()>,
pub no_use_before_define: RuleConfig<NoUseBeforeDefineConfig>,
pub dot_notation: RuleConfig<DotNotationConfig>,
pub quotes: RuleConfig<QuotesConfig>,
pub no_empty_function: RuleConfig<NoEmptyFunctionConfig>,
pub no_empty_pattern: RuleConfig<()>,
pub eqeqeq: RuleConfig<EqeqeqConfig>,
pub no_loop_func: RuleConfig<()>,
pub no_new: RuleConfig<()>,
pub no_restricted_syntax: RuleConfig<NoRestrictedSyntaxConfig>,
pub radix: RuleConfig<RadixConfig>,
pub no_bitwise: RuleConfig<NoBitwiseConfig>,
pub default_param_last: RuleConfig<()>,
pub yoda: RuleConfig<YodaConfig>,
pub no_new_symbol: RuleConfig<()>,
pub use_isnan: RuleConfig<UseIsNanConfig>,
pub valid_typeof: RuleConfig<ValidTypeofConfig>,
pub no_param_reassign: RuleConfig<NoParamReassignConfig>,
pub symbol_description: RuleConfig<SymbolDescriptionConfig>,
pub no_obj_calls: RuleConfig<()>,
pub no_var: RuleConfig<()>,
pub no_throw_literal: RuleConfig<()>,
pub prefer_const: RuleConfig<PreferConstConfig>,
pub no_compare_neg_zero: RuleConfig<()>,
pub constructor_super: RuleConfig<()>,
pub no_sparse_arrays: RuleConfig<()>,
pub default_case_last: RuleConfig<()>,
pub no_await_in_loop: RuleConfig<()>,
}
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.no_console: RuleConfig<NoConsoleConfig>
prefer_regex_literals: RuleConfig<PreferRegexLiteralsConfig>
no_alert: RuleConfig<()>
no_debugger: RuleConfig<()>
no_use_before_define: RuleConfig<NoUseBeforeDefineConfig>
dot_notation: RuleConfig<DotNotationConfig>
quotes: RuleConfig<QuotesConfig>
no_empty_function: RuleConfig<NoEmptyFunctionConfig>
no_empty_pattern: RuleConfig<()>
eqeqeq: RuleConfig<EqeqeqConfig>
no_loop_func: RuleConfig<()>
no_new: RuleConfig<()>
no_restricted_syntax: RuleConfig<NoRestrictedSyntaxConfig>
radix: RuleConfig<RadixConfig>
no_bitwise: RuleConfig<NoBitwiseConfig>
default_param_last: RuleConfig<()>
yoda: RuleConfig<YodaConfig>
no_new_symbol: RuleConfig<()>
use_isnan: RuleConfig<UseIsNanConfig>
valid_typeof: RuleConfig<ValidTypeofConfig>
no_param_reassign: RuleConfig<NoParamReassignConfig>
symbol_description: RuleConfig<SymbolDescriptionConfig>
no_obj_calls: RuleConfig<()>
no_var: RuleConfig<()>
no_throw_literal: RuleConfig<()>
prefer_const: RuleConfig<PreferConstConfig>
no_compare_neg_zero: RuleConfig<()>
constructor_super: RuleConfig<()>
no_sparse_arrays: RuleConfig<()>
default_case_last: RuleConfig<()>
no_await_in_loop: RuleConfig<()>
Trait Implementations
sourceimpl Clone for LintConfig
impl Clone for LintConfig
sourcefn clone(&self) -> LintConfig
fn clone(&self) -> LintConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for LintConfig
impl Debug for LintConfig
sourceimpl Default for LintConfig
impl Default for LintConfig
sourcefn default() -> LintConfig
fn default() -> LintConfig
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for LintConfig
impl<'de> Deserialize<'de> for LintConfig
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Merge for LintConfig
impl Merge for LintConfig
sourceimpl Serialize for LintConfig
impl Serialize for LintConfig
Auto Trait Implementations
impl RefUnwindSafe for LintConfig
impl Send for LintConfig
impl Sync for LintConfig
impl Unpin for LintConfig
impl UnwindSafe for LintConfig
Blanket Implementations
sourceimpl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
sourcefn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more