1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-22 10:22:39 +01:00

Prettier: use editorconfig

This commit is contained in:
Emma [it/its]@Rory& 2023-12-10 23:32:12 +01:00
parent a995adb16a
commit daeb6c3587
12 changed files with 326 additions and 318 deletions

View File

@ -146,25 +146,22 @@ ij_xml_space_inside_empty_tag = false
ij_xml_text_wrap = normal ij_xml_text_wrap = normal
[{*.ats,*.cts,*.mts,*.ts}] [{*.ats,*.cts,*.mts,*.ts}]
indent_size = 2 indent_style = tab
tab_width = 2
ij_continuation_indent_size = 2
ij_visual_guides = 80
ij_typescript_align_imports = false 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_binary_operation = false
ij_typescript_align_multiline_chained_methods = false ij_typescript_align_multiline_chained_methods = false
ij_typescript_align_multiline_extends_list = false ij_typescript_align_multiline_extends_list = false
ij_typescript_align_multiline_for = true 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_parameters_in_calls = false
ij_typescript_align_multiline_ternary_operation = false ij_typescript_align_multiline_ternary_operation = false
ij_typescript_align_object_properties = 0 ij_typescript_align_object_properties = 0
ij_typescript_align_union_types = false ij_typescript_align_union_types = false
ij_typescript_align_var_statements = 0 ij_typescript_align_var_statements = 0
ij_typescript_array_initializer_new_line_after_left_brace = false ij_typescript_array_initializer_new_line_after_left_brace = true
ij_typescript_array_initializer_right_brace_on_new_line = false ij_typescript_array_initializer_right_brace_on_new_line = true
ij_typescript_array_initializer_wrap = off ij_typescript_array_initializer_wrap = on_every_item
ij_typescript_assignment_wrap = off ij_typescript_assignment_wrap = off
ij_typescript_binary_operation_sign_on_next_line = false ij_typescript_binary_operation_sign_on_next_line = false
ij_typescript_binary_operation_wrap = off 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_block_comment_at_first_column = true
ij_typescript_call_parameters_new_line_after_left_paren = false ij_typescript_call_parameters_new_line_after_left_paren = false
ij_typescript_call_parameters_right_paren_on_new_line = 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_catch_on_new_line = false
ij_typescript_chained_call_dot_on_new_line = true ij_typescript_chained_call_dot_on_new_line = true
ij_typescript_class_brace_style = end_of_line ij_typescript_class_brace_style = end_of_line
ij_typescript_comma_on_new_line = false ij_typescript_comma_on_new_line = false
ij_typescript_do_while_brace_force = never ij_typescript_do_while_brace_force = never
ij_typescript_else_on_new_line = false ij_typescript_else_on_new_line = false
ij_typescript_enforce_trailing_comma = remove ij_typescript_enforce_trailing_comma = whenmultiline
ij_typescript_enum_constants_wrap = on_every_item ij_typescript_enum_constants_wrap = off
ij_typescript_extends_keyword_wrap = off ij_typescript_extends_keyword_wrap = off
ij_typescript_extends_list_wrap = off ij_typescript_extends_list_wrap = off
ij_typescript_field_prefix = _ 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_add_space = true
ij_typescript_line_comment_at_first_column = false ij_typescript_line_comment_at_first_column = false
ij_typescript_method_brace_style = end_of_line ij_typescript_method_brace_style = end_of_line
ij_typescript_method_call_chain_wrap = off ij_typescript_method_call_chain_wrap = on_every_item
ij_typescript_method_parameters_new_line_after_left_paren = false ij_typescript_method_parameters_new_line_after_left_paren = true
ij_typescript_method_parameters_right_paren_on_new_line = false ij_typescript_method_parameters_right_paren_on_new_line = true
ij_typescript_method_parameters_wrap = off ij_typescript_method_parameters_wrap = on_every_item
ij_typescript_object_literal_wrap = on_every_item ij_typescript_object_literal_wrap = on_every_item
ij_typescript_object_types_wrap = on_every_item ij_typescript_object_types_wrap = on_every_item
ij_typescript_parentheses_expression_new_line_after_left_paren = false 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_relational_operators = true
ij_typescript_spaces_around_shift_operators = true ij_typescript_spaces_around_shift_operators = true
ij_typescript_spaces_around_unary_operator = false 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_brackets = false
ij_typescript_spaces_within_catch_parentheses = false ij_typescript_spaces_within_catch_parentheses = false
ij_typescript_spaces_within_for_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_object_type_braces = true
ij_typescript_spaces_within_parentheses = false ij_typescript_spaces_within_parentheses = false
ij_typescript_spaces_within_switch_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_union_types = true
ij_typescript_spaces_within_while_parentheses = false ij_typescript_spaces_within_while_parentheses = false
ij_typescript_special_else_if_treatment = true ij_typescript_special_else_if_treatment = true
ij_typescript_ternary_operation_signs_on_next_line = false ij_typescript_ternary_operation_signs_on_next_line = true
ij_typescript_ternary_operation_wrap = off ij_typescript_ternary_operation_wrap = on_every_item
ij_typescript_union_types_wrap = on_every_item ij_typescript_union_types_wrap = on_every_item
ij_typescript_use_chained_calls_group_indents = false ij_typescript_use_chained_calls_group_indents = false
ij_typescript_use_double_quotes = true ij_typescript_use_double_quotes = true
@ -332,25 +329,23 @@ ij_shell_switch_cases_indented = false
ij_shell_use_unix_line_separator = true ij_shell_use_unix_line_separator = true
[{*.cjs,*.js}] [{*.cjs,*.js}]
indent_size = 2 indent_style = tab
tab_width = 2 ij_continuation_indent_size = 4
ij_continuation_indent_size = 2
ij_visual_guides = 80
ij_javascript_align_imports = false 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_binary_operation = false
ij_javascript_align_multiline_chained_methods = false ij_javascript_align_multiline_chained_methods = false
ij_javascript_align_multiline_extends_list = false ij_javascript_align_multiline_extends_list = false
ij_javascript_align_multiline_for = true 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_parameters_in_calls = false
ij_javascript_align_multiline_ternary_operation = false ij_javascript_align_multiline_ternary_operation = false
ij_javascript_align_object_properties = 0 ij_javascript_align_object_properties = 0
ij_javascript_align_union_types = false ij_javascript_align_union_types = false
ij_javascript_align_var_statements = 0 ij_javascript_align_var_statements = 0
ij_javascript_array_initializer_new_line_after_left_brace = false ij_javascript_array_initializer_new_line_after_left_brace = true
ij_javascript_array_initializer_right_brace_on_new_line = false ij_javascript_array_initializer_right_brace_on_new_line = true
ij_javascript_array_initializer_wrap = off ij_javascript_array_initializer_wrap = on_every_item
ij_javascript_assignment_wrap = off ij_javascript_assignment_wrap = off
ij_javascript_binary_operation_sign_on_next_line = false ij_javascript_binary_operation_sign_on_next_line = false
ij_javascript_binary_operation_wrap = off 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_block_comment_at_first_column = true
ij_javascript_call_parameters_new_line_after_left_paren = false ij_javascript_call_parameters_new_line_after_left_paren = false
ij_javascript_call_parameters_right_paren_on_new_line = 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_catch_on_new_line = false
ij_javascript_chained_call_dot_on_new_line = true ij_javascript_chained_call_dot_on_new_line = true
ij_javascript_class_brace_style = end_of_line ij_javascript_class_brace_style = end_of_line
ij_javascript_comma_on_new_line = false ij_javascript_comma_on_new_line = false
ij_javascript_do_while_brace_force = never ij_javascript_do_while_brace_force = never
ij_javascript_else_on_new_line = false 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_keyword_wrap = off
ij_javascript_extends_list_wrap = off ij_javascript_extends_list_wrap = off
ij_javascript_field_prefix = _ 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_if_brace_force = never
ij_javascript_import_merge_members = global ij_javascript_import_merge_members = global
ij_javascript_import_prefer_absolute_path = 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_sort_module_name = false
ij_javascript_import_use_node_resolution = true ij_javascript_import_use_node_resolution = true
ij_javascript_imports_wrap = on_every_item 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_add_space = true
ij_javascript_line_comment_at_first_column = false ij_javascript_line_comment_at_first_column = false
ij_javascript_method_brace_style = end_of_line ij_javascript_method_brace_style = end_of_line
ij_javascript_method_call_chain_wrap = off ij_javascript_method_call_chain_wrap = on_every_item
ij_javascript_method_parameters_new_line_after_left_paren = false ij_javascript_method_parameters_new_line_after_left_paren = true
ij_javascript_method_parameters_right_paren_on_new_line = false ij_javascript_method_parameters_right_paren_on_new_line = true
ij_javascript_method_parameters_wrap = off ij_javascript_method_parameters_wrap = on_every_item
ij_javascript_object_literal_wrap = on_every_item ij_javascript_object_literal_wrap = on_every_item
ij_javascript_object_types_wrap = on_every_item ij_javascript_object_types_wrap = on_every_item
ij_javascript_parentheses_expression_new_line_after_left_paren = false 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_relational_operators = true
ij_javascript_spaces_around_shift_operators = true ij_javascript_spaces_around_shift_operators = true
ij_javascript_spaces_around_unary_operator = false 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_brackets = false
ij_javascript_spaces_within_catch_parentheses = false ij_javascript_spaces_within_catch_parentheses = false
ij_javascript_spaces_within_for_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_union_types = true
ij_javascript_spaces_within_while_parentheses = false ij_javascript_spaces_within_while_parentheses = false
ij_javascript_special_else_if_treatment = true ij_javascript_special_else_if_treatment = true
ij_javascript_ternary_operation_signs_on_next_line = false ij_javascript_ternary_operation_signs_on_next_line = true
ij_javascript_ternary_operation_wrap = off ij_javascript_ternary_operation_wrap = on_every_item
ij_javascript_union_types_wrap = on_every_item ij_javascript_union_types_wrap = on_every_item
ij_javascript_use_chained_calls_group_indents = false ij_javascript_use_chained_calls_group_indents = false
ij_javascript_use_double_quotes = true 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_blank_lines_in_code = 0
ij_json_keep_indents_on_empty_lines = false ij_json_keep_indents_on_empty_lines = false
ij_json_keep_line_breaks = true 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_object_wrapping = split_into_lines
ij_json_property_alignment = do_not_align ij_json_property_alignment = do_not_align
ij_json_space_after_colon = true ij_json_space_after_colon = true

View File

@ -5,3 +5,4 @@ COPYING
src/webrtc src/webrtc
scripts/ scripts/
assets assets
package-lock.json

View File

@ -6,19 +6,26 @@
</HTMLCodeStyleSettings> </HTMLCodeStyleSettings>
<JSCodeStyleSettings version="0"> <JSCodeStyleSettings version="0">
<option name="FORCE_SEMICOLON_STYLE" value="true" /> <option name="FORCE_SEMICOLON_STYLE" value="true" />
<option name="SPACE_WITHIN_ARRAY_INITIALIZER_BRACKETS" value="true" />
<option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" /> <option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
<option name="FORCE_QUOTE_STYlE" value="true" /> <option name="FORCE_QUOTE_STYlE" value="true" />
<option name="ENFORCE_TRAILING_COMMA" value="Remove" /> <option name="ENFORCE_TRAILING_COMMA" value="WhenMultiline" />
<option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" /> <option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
<option name="SPACES_WITHIN_IMPORTS" value="true" /> <option name="SPACES_WITHIN_IMPORTS" value="true" />
<option name="IMPORT_SORT_MEMBERS" value="false" />
</JSCodeStyleSettings> </JSCodeStyleSettings>
<JSON>
<option name="KEEP_TRAILING_COMMA" value="true" />
</JSON>
<TypeScriptCodeStyleSettings version="0"> <TypeScriptCodeStyleSettings version="0">
<option name="FORCE_SEMICOLON_STYLE" value="true" /> <option name="FORCE_SEMICOLON_STYLE" value="true" />
<option name="SPACE_WITHIN_ARRAY_INITIALIZER_BRACKETS" value="true" />
<option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" /> <option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
<option name="FORCE_QUOTE_STYlE" value="true" /> <option name="FORCE_QUOTE_STYlE" value="true" />
<option name="ENFORCE_TRAILING_COMMA" value="Remove" /> <option name="ENFORCE_TRAILING_COMMA" value="WhenMultiline" />
<option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" /> <option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
<option name="SPACES_WITHIN_IMPORTS" value="true" /> <option name="SPACES_WITHIN_IMPORTS" value="true" />
<option name="SPACE_WITHIN_TYPE_ASSERTION" value="true" />
<option name="IMPORT_SORT_MEMBERS" value="false" /> <option name="IMPORT_SORT_MEMBERS" value="false" />
</TypeScriptCodeStyleSettings> </TypeScriptCodeStyleSettings>
<VueCodeStyleSettings> <VueCodeStyleSettings>
@ -42,11 +49,20 @@
</indentOptions> </indentOptions>
</codeStyleSettings> </codeStyleSettings>
<codeStyleSettings language="JavaScript"> <codeStyleSettings language="JavaScript">
<option name="SOFT_MARGINS" value="80" /> <option name="ALIGN_MULTILINE_PARAMETERS" value="false" />
<option name="ALIGN_MULTILINE_ARRAY_INITIALIZER_EXPRESSION" value="true" />
<option name="CALL_PARAMETERS_WRAP" value="5" />
<option name="METHOD_PARAMETERS_WRAP" value="5" />
<option name="METHOD_PARAMETERS_LPAREN_ON_NEXT_LINE" value="true" />
<option name="METHOD_PARAMETERS_RPAREN_ON_NEXT_LINE" value="true" />
<option name="METHOD_CALL_CHAIN_WRAP" value="5" />
<option name="TERNARY_OPERATION_WRAP" value="5" />
<option name="TERNARY_OPERATION_SIGNS_ON_NEXT_LINE" value="true" />
<option name="ARRAY_INITIALIZER_WRAP" value="5" />
<option name="ARRAY_INITIALIZER_LBRACE_ON_NEXT_LINE" value="true" />
<option name="ARRAY_INITIALIZER_RBRACE_ON_NEXT_LINE" value="true" />
<indentOptions> <indentOptions>
<option name="INDENT_SIZE" value="2" /> <option name="USE_TAB_CHARACTER" value="true" />
<option name="CONTINUATION_INDENT_SIZE" value="2" />
<option name="TAB_SIZE" value="2" />
</indentOptions> </indentOptions>
<arrangement> <arrangement>
<groups> <groups>
@ -132,11 +148,22 @@
</arrangement> </arrangement>
</codeStyleSettings> </codeStyleSettings>
<codeStyleSettings language="TypeScript"> <codeStyleSettings language="TypeScript">
<option name="SOFT_MARGINS" value="80" /> <option name="ALIGN_MULTILINE_PARAMETERS" value="false" />
<option name="ALIGN_MULTILINE_ARRAY_INITIALIZER_EXPRESSION" value="true" />
<option name="CALL_PARAMETERS_WRAP" value="5" />
<option name="METHOD_PARAMETERS_WRAP" value="5" />
<option name="METHOD_PARAMETERS_LPAREN_ON_NEXT_LINE" value="true" />
<option name="METHOD_PARAMETERS_RPAREN_ON_NEXT_LINE" value="true" />
<option name="METHOD_CALL_CHAIN_WRAP" value="5" />
<option name="TERNARY_OPERATION_WRAP" value="5" />
<option name="TERNARY_OPERATION_SIGNS_ON_NEXT_LINE" value="true" />
<option name="ARRAY_INITIALIZER_WRAP" value="5" />
<option name="ARRAY_INITIALIZER_LBRACE_ON_NEXT_LINE" value="true" />
<option name="ARRAY_INITIALIZER_RBRACE_ON_NEXT_LINE" value="true" />
<option name="ENUM_CONSTANTS_WRAP" value="0" />
<indentOptions> <indentOptions>
<option name="INDENT_SIZE" value="2" /> <option name="CONTINUATION_INDENT_SIZE" value="8" />
<option name="CONTINUATION_INDENT_SIZE" value="2" /> <option name="USE_TAB_CHARACTER" value="true" />
<option name="TAB_SIZE" value="2" />
</indentOptions> </indentOptions>
</codeStyleSettings> </codeStyleSettings>
<codeStyleSettings language="Vue"> <codeStyleSettings language="Vue">

View File

@ -7,5 +7,6 @@
<option name="processLiterals" value="true" /> <option name="processLiterals" value="true" />
<option name="processComments" value="true" /> <option name="processComments" value="true" />
</inspection_tool> </inspection_tool>
<inspection_tool class="TypeScriptExplicitMemberType" enabled="true" level="WEAK WARNING" enabled_by_default="true" editorAttributes="INFO_ATTRIBUTES" />
</profile> </profile>
</component> </component>

View File

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="EslintConfiguration">
<option name="fix-on-save" value="true" />
</component>
</project>

View File

@ -3,3 +3,4 @@ dist
node_modules node_modules
.github .github
.vscode .vscode
package-lock.json

View File

@ -1,11 +0,0 @@
{
"trailingComma": "all",
"tabWidth": 4,
"semi": true,
"arrowParens": "always",
"bracketSameLine": false,
"bracketSpacing": true,
"quoteProps": "as-needed",
"useTabs": true,
"singleQuote": false
}