diff --git a/.editorconfig b/.editorconfig index f1c6e7b5..6a494c5e 100644 --- a/.editorconfig +++ b/.editorconfig @@ -146,25 +146,22 @@ ij_xml_space_inside_empty_tag = false ij_xml_text_wrap = normal [{*.ats,*.cts,*.mts,*.ts}] -indent_size = 2 -tab_width = 2 -ij_continuation_indent_size = 2 -ij_visual_guides = 80 +indent_style = tab ij_typescript_align_imports = false -ij_typescript_align_multiline_array_initializer_expression = false +ij_typescript_align_multiline_array_initializer_expression = true ij_typescript_align_multiline_binary_operation = false ij_typescript_align_multiline_chained_methods = false ij_typescript_align_multiline_extends_list = false ij_typescript_align_multiline_for = true -ij_typescript_align_multiline_parameters = true +ij_typescript_align_multiline_parameters = false ij_typescript_align_multiline_parameters_in_calls = false ij_typescript_align_multiline_ternary_operation = false ij_typescript_align_object_properties = 0 ij_typescript_align_union_types = false ij_typescript_align_var_statements = 0 -ij_typescript_array_initializer_new_line_after_left_brace = false -ij_typescript_array_initializer_right_brace_on_new_line = false -ij_typescript_array_initializer_wrap = off +ij_typescript_array_initializer_new_line_after_left_brace = true +ij_typescript_array_initializer_right_brace_on_new_line = true +ij_typescript_array_initializer_wrap = on_every_item ij_typescript_assignment_wrap = off ij_typescript_binary_operation_sign_on_next_line = false ij_typescript_binary_operation_wrap = off @@ -181,15 +178,15 @@ ij_typescript_block_comment_add_space = false ij_typescript_block_comment_at_first_column = true ij_typescript_call_parameters_new_line_after_left_paren = false ij_typescript_call_parameters_right_paren_on_new_line = false -ij_typescript_call_parameters_wrap = off +ij_typescript_call_parameters_wrap = on_every_item ij_typescript_catch_on_new_line = false ij_typescript_chained_call_dot_on_new_line = true ij_typescript_class_brace_style = end_of_line ij_typescript_comma_on_new_line = false ij_typescript_do_while_brace_force = never ij_typescript_else_on_new_line = false -ij_typescript_enforce_trailing_comma = remove -ij_typescript_enum_constants_wrap = on_every_item +ij_typescript_enforce_trailing_comma = whenmultiline +ij_typescript_enum_constants_wrap = off ij_typescript_extends_keyword_wrap = off ij_typescript_extends_list_wrap = off ij_typescript_field_prefix = _ @@ -223,10 +220,10 @@ ij_typescript_keep_simple_methods_in_one_line = false ij_typescript_line_comment_add_space = true ij_typescript_line_comment_at_first_column = false ij_typescript_method_brace_style = end_of_line -ij_typescript_method_call_chain_wrap = off -ij_typescript_method_parameters_new_line_after_left_paren = false -ij_typescript_method_parameters_right_paren_on_new_line = false -ij_typescript_method_parameters_wrap = off +ij_typescript_method_call_chain_wrap = on_every_item +ij_typescript_method_parameters_new_line_after_left_paren = true +ij_typescript_method_parameters_right_paren_on_new_line = true +ij_typescript_method_parameters_wrap = on_every_item ij_typescript_object_literal_wrap = on_every_item ij_typescript_object_types_wrap = on_every_item ij_typescript_parentheses_expression_new_line_after_left_paren = false @@ -290,7 +287,7 @@ ij_typescript_spaces_around_multiplicative_operators = true ij_typescript_spaces_around_relational_operators = true ij_typescript_spaces_around_shift_operators = true ij_typescript_spaces_around_unary_operator = false -ij_typescript_spaces_within_array_initializer_brackets = false +ij_typescript_spaces_within_array_initializer_brackets = true ij_typescript_spaces_within_brackets = false ij_typescript_spaces_within_catch_parentheses = false ij_typescript_spaces_within_for_parentheses = false @@ -303,12 +300,12 @@ ij_typescript_spaces_within_object_literal_braces = true ij_typescript_spaces_within_object_type_braces = true ij_typescript_spaces_within_parentheses = false ij_typescript_spaces_within_switch_parentheses = false -ij_typescript_spaces_within_type_assertion = false +ij_typescript_spaces_within_type_assertion = true ij_typescript_spaces_within_union_types = true ij_typescript_spaces_within_while_parentheses = false ij_typescript_special_else_if_treatment = true -ij_typescript_ternary_operation_signs_on_next_line = false -ij_typescript_ternary_operation_wrap = off +ij_typescript_ternary_operation_signs_on_next_line = true +ij_typescript_ternary_operation_wrap = on_every_item ij_typescript_union_types_wrap = on_every_item ij_typescript_use_chained_calls_group_indents = false ij_typescript_use_double_quotes = true @@ -332,25 +329,23 @@ ij_shell_switch_cases_indented = false ij_shell_use_unix_line_separator = true [{*.cjs,*.js}] -indent_size = 2 -tab_width = 2 -ij_continuation_indent_size = 2 -ij_visual_guides = 80 +indent_style = tab +ij_continuation_indent_size = 4 ij_javascript_align_imports = false -ij_javascript_align_multiline_array_initializer_expression = false +ij_javascript_align_multiline_array_initializer_expression = true ij_javascript_align_multiline_binary_operation = false ij_javascript_align_multiline_chained_methods = false ij_javascript_align_multiline_extends_list = false ij_javascript_align_multiline_for = true -ij_javascript_align_multiline_parameters = true +ij_javascript_align_multiline_parameters = false ij_javascript_align_multiline_parameters_in_calls = false ij_javascript_align_multiline_ternary_operation = false ij_javascript_align_object_properties = 0 ij_javascript_align_union_types = false ij_javascript_align_var_statements = 0 -ij_javascript_array_initializer_new_line_after_left_brace = false -ij_javascript_array_initializer_right_brace_on_new_line = false -ij_javascript_array_initializer_wrap = off +ij_javascript_array_initializer_new_line_after_left_brace = true +ij_javascript_array_initializer_right_brace_on_new_line = true +ij_javascript_array_initializer_wrap = on_every_item ij_javascript_assignment_wrap = off ij_javascript_binary_operation_sign_on_next_line = false ij_javascript_binary_operation_wrap = off @@ -365,14 +360,14 @@ ij_javascript_block_comment_add_space = false ij_javascript_block_comment_at_first_column = true ij_javascript_call_parameters_new_line_after_left_paren = false ij_javascript_call_parameters_right_paren_on_new_line = false -ij_javascript_call_parameters_wrap = off +ij_javascript_call_parameters_wrap = on_every_item ij_javascript_catch_on_new_line = false ij_javascript_chained_call_dot_on_new_line = true ij_javascript_class_brace_style = end_of_line ij_javascript_comma_on_new_line = false ij_javascript_do_while_brace_force = never ij_javascript_else_on_new_line = false -ij_javascript_enforce_trailing_comma = remove +ij_javascript_enforce_trailing_comma = whenmultiline ij_javascript_extends_keyword_wrap = off ij_javascript_extends_list_wrap = off ij_javascript_field_prefix = _ @@ -388,7 +383,7 @@ ij_javascript_function_expression_brace_style = end_of_line ij_javascript_if_brace_force = never ij_javascript_import_merge_members = global ij_javascript_import_prefer_absolute_path = global -ij_javascript_import_sort_members = true +ij_javascript_import_sort_members = false ij_javascript_import_sort_module_name = false ij_javascript_import_use_node_resolution = true ij_javascript_imports_wrap = on_every_item @@ -405,10 +400,10 @@ ij_javascript_keep_simple_methods_in_one_line = false ij_javascript_line_comment_add_space = true ij_javascript_line_comment_at_first_column = false ij_javascript_method_brace_style = end_of_line -ij_javascript_method_call_chain_wrap = off -ij_javascript_method_parameters_new_line_after_left_paren = false -ij_javascript_method_parameters_right_paren_on_new_line = false -ij_javascript_method_parameters_wrap = off +ij_javascript_method_call_chain_wrap = on_every_item +ij_javascript_method_parameters_new_line_after_left_paren = true +ij_javascript_method_parameters_right_paren_on_new_line = true +ij_javascript_method_parameters_wrap = on_every_item ij_javascript_object_literal_wrap = on_every_item ij_javascript_object_types_wrap = on_every_item ij_javascript_parentheses_expression_new_line_after_left_paren = false @@ -472,7 +467,7 @@ ij_javascript_spaces_around_multiplicative_operators = true ij_javascript_spaces_around_relational_operators = true ij_javascript_spaces_around_shift_operators = true ij_javascript_spaces_around_unary_operator = false -ij_javascript_spaces_within_array_initializer_brackets = false +ij_javascript_spaces_within_array_initializer_brackets = true ij_javascript_spaces_within_brackets = false ij_javascript_spaces_within_catch_parentheses = false ij_javascript_spaces_within_for_parentheses = false @@ -489,8 +484,8 @@ ij_javascript_spaces_within_type_assertion = false ij_javascript_spaces_within_union_types = true ij_javascript_spaces_within_while_parentheses = false ij_javascript_special_else_if_treatment = true -ij_javascript_ternary_operation_signs_on_next_line = false -ij_javascript_ternary_operation_wrap = off +ij_javascript_ternary_operation_signs_on_next_line = true +ij_javascript_ternary_operation_wrap = on_every_item ij_javascript_union_types_wrap = on_every_item ij_javascript_use_chained_calls_group_indents = false ij_javascript_use_double_quotes = true @@ -508,7 +503,7 @@ ij_json_array_wrapping = split_into_lines ij_json_keep_blank_lines_in_code = 0 ij_json_keep_indents_on_empty_lines = false ij_json_keep_line_breaks = true -ij_json_keep_trailing_comma = false +ij_json_keep_trailing_comma = true ij_json_object_wrapping = split_into_lines ij_json_property_alignment = do_not_align ij_json_space_after_colon = true diff --git a/.eslintignore b/.eslintignore index 15a75b0e..0b90b8d2 100644 --- a/.eslintignore +++ b/.eslintignore @@ -4,4 +4,5 @@ README.md COPYING src/webrtc scripts/ -assets \ No newline at end of file +assets +package-lock.json \ No newline at end of file diff --git a/.eslintrc b/.eslintrc index 40eac134..8c73fdc6 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,14 +1,14 @@ { - "extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"], - "parser": "@typescript-eslint/parser", - "plugins": ["@typescript-eslint"], - "root": true, - "rules": { - "no-mixed-spaces-and-tabs": "off", - "@typescript-eslint/no-inferrable-types": "off", // Required by typeorm - "@typescript-eslint/no-var-requires": "off" // Sometimes requred by typeorm to resolve circular deps - }, - "env": { - "node": true - } + "extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"], + "parser": "@typescript-eslint/parser", + "plugins": ["@typescript-eslint"], + "root": true, + "rules": { + "no-mixed-spaces-and-tabs": "off", + "@typescript-eslint/no-inferrable-types": "off", // Required by typeorm + "@typescript-eslint/no-var-requires": "off" // Sometimes requred by typeorm to resolve circular deps + }, + "env": { + "node": true + } } diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml index 4ce35b7a..cd7e9138 100644 --- a/.idea/codeStyles/Project.xml +++ b/.idea/codeStyles/Project.xml @@ -6,19 +6,26 @@ + + @@ -42,11 +49,20 @@ - - diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml index 22cdf9bd..f986a929 100644 --- a/.idea/inspectionProfiles/Project_Default.xml +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -7,5 +7,6 @@