Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(linter): move typescript/no-magic-numbers to eslint/no-magic-numbers #5640

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions crates/oxc_linter/src/rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ mod eslint {
pub mod no_iterator;
pub mod no_label_var;
pub mod no_loss_of_precision;
pub mod no_magic_numbers;
pub mod no_multi_str;
pub mod no_new;
pub mod no_new_func;
Expand Down Expand Up @@ -151,7 +152,6 @@ mod typescript {
pub mod no_extra_non_null_assertion;
pub mod no_extraneous_class;
pub mod no_import_type_side_effects;
pub mod no_magic_numbers;
pub mod no_misused_new;
pub mod no_namespace;
pub mod no_non_null_asserted_nullish_coalescing;
Expand Down Expand Up @@ -494,24 +494,21 @@ oxc_macros::declare_all_lint_rules! {
eslint::max_classes_per_file,
eslint::max_lines,
eslint::max_params,
eslint::no_ternary,
eslint::no_this_before_super,
eslint::no_template_curly_in_string,
eslint::no_alert,
eslint::no_array_constructor,
eslint::no_async_promise_executor,
eslint::no_await_in_loop,
eslint::no_bitwise,
eslint::no_caller,
eslint::no_case_declarations,
eslint::no_class_assign,
eslint::no_label_var,
eslint::require_await,
eslint::no_compare_neg_zero,
eslint::no_cond_assign,
eslint::no_console,
eslint::no_const_assign,
eslint::no_constant_binary_expression,
eslint::no_constant_condition,
eslint::no_constructor_return,
eslint::no_continue,
eslint::no_control_regex,
eslint::no_debugger,
Expand All @@ -526,66 +523,70 @@ oxc_macros::declare_all_lint_rules! {
eslint::no_empty_function,
eslint::no_empty_pattern,
eslint::no_empty_static_block,
eslint::no_eq_null,
eslint::no_eval,
eslint::no_ex_assign,
eslint::no_extra_boolean_cast,
eslint::no_eq_null,
eslint::no_fallthrough,
eslint::no_func_assign,
eslint::no_global_assign,
eslint::no_import_assign,
eslint::no_inner_declarations,
eslint::no_invalid_regexp,
eslint::no_irregular_whitespace,
eslint::no_iterator,
eslint::no_label_var,
eslint::no_loss_of_precision,
eslint::no_magic_numbers,
eslint::no_multi_str,
eslint::no_new,
eslint::no_new_func,
eslint::no_new_native_nonconstructor,
eslint::no_new_wrappers,
eslint::no_nonoctal_decimal_escape,
eslint::no_obj_calls,
eslint::no_proto,
eslint::no_prototype_builtins,
eslint::no_redeclare,
eslint::no_regex_spaces,
eslint::no_restricted_globals,
eslint::no_script_url,
eslint::no_self_assign,
eslint::no_self_compare,
eslint::no_setter_return,
eslint::no_shadow_restricted_names,
eslint::no_sparse_arrays,
eslint::no_template_curly_in_string,
eslint::no_ternary,
eslint::no_this_before_super,
eslint::no_undef,
eslint::no_undefined,
eslint::no_unreachable,
eslint::no_unsafe_finally,
eslint::no_unsafe_negation,
eslint::no_unsafe_optional_chaining,
eslint::no_unused_labels,
eslint::no_unused_vars,
eslint::no_unused_private_class_members,
eslint::no_unused_vars,
eslint::no_useless_catch,
eslint::no_useless_escape,
eslint::no_useless_rename,
eslint::no_useless_concat,
eslint::no_useless_constructor,
eslint::no_useless_escape,
eslint::no_useless_rename,
eslint::no_var,
eslint::no_invalid_regexp,
eslint::no_void,
eslint::no_with,
eslint::prefer_exponentiation_operator,
eslint::prefer_numeric_literals,
eslint::radix,
eslint::require_await,
eslint::require_yield,
eslint::symbol_description,
eslint::sort_imports,
eslint::sort_vars,
eslint::symbol_description,
eslint::unicode_bom,
eslint::use_isnan,
eslint::valid_typeof,
eslint::no_await_in_loop,
eslint::no_new_native_nonconstructor,
eslint::no_restricted_globals,
eslint::prefer_exponentiation_operator,
eslint::prefer_numeric_literals,
eslint::no_constructor_return,
typescript::adjacent_overload_signatures,
typescript::array_type,
typescript::ban_ts_comment,
Expand All @@ -600,7 +601,6 @@ oxc_macros::declare_all_lint_rules! {
typescript::no_explicit_any,
typescript::no_extra_non_null_assertion,
typescript::no_import_type_side_effects,
typescript::no_magic_numbers,
typescript::no_misused_new,
typescript::no_namespace,
typescript::no_non_null_asserted_optional_chain,
Expand Down
Loading