Skip to content

Commit 5878957

Browse files
committed
📖 Updated .editorconfig file
1 parent e1e02d8 commit 5878957

File tree

1 file changed

+30
-25
lines changed

1 file changed

+30
-25
lines changed

.editorconfig

Lines changed: 30 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ indent_style = space
66
insert_final_newline = true
77
max_line_length = 120
88
tab_width = 4
9-
trim_trailing_whitespace = true
9+
trim_trailing_whitespace = false
1010
ij_continuation_indent_size = 8
1111
ij_formatter_off_tag = @formatter:off
1212
ij_formatter_on_tag = @formatter:on
@@ -39,12 +39,7 @@ ij_css_space_before_opening_brace = true
3939
ij_css_use_double_quotes = true
4040
ij_css_value_alignment = do_not_align
4141

42-
[*.haml]
43-
indent_size = 2
44-
ij_haml_keep_indents_on_empty_lines = false
45-
4642
[*.less]
47-
indent_size = 2
4843
ij_less_align_closing_brace_with_properties = false
4944
ij_less_blank_lines_around_nested_selector = 1
5045
ij_less_blank_lines_between_blocks = 1
@@ -67,7 +62,6 @@ ij_less_use_double_quotes = true
6762
ij_less_value_alignment = 0
6863

6964
[*.sass]
70-
indent_size = 2
7165
ij_sass_align_closing_brace_with_properties = false
7266
ij_sass_blank_lines_around_nested_selector = 1
7367
ij_sass_blank_lines_between_blocks = 1
@@ -232,6 +226,7 @@ ij_typescript_method_parameters_new_line_after_left_paren = false
232226
ij_typescript_method_parameters_right_paren_on_new_line = false
233227
ij_typescript_method_parameters_wrap = off
234228
ij_typescript_object_literal_wrap = on_every_item
229+
ij_typescript_object_types_wrap = on_every_item
235230
ij_typescript_parentheses_expression_new_line_after_left_paren = false
236231
ij_typescript_parentheses_expression_right_paren_on_new_line = false
237232
ij_typescript_place_assignment_sign_on_next_line = false
@@ -407,6 +402,7 @@ ij_javascript_method_parameters_new_line_after_left_paren = false
407402
ij_javascript_method_parameters_right_paren_on_new_line = false
408403
ij_javascript_method_parameters_wrap = off
409404
ij_javascript_object_literal_wrap = on_every_item
405+
ij_javascript_object_types_wrap = on_every_item
410406
ij_javascript_parentheses_expression_new_line_after_left_paren = false
411407
ij_javascript_parentheses_expression_right_paren_on_new_line = false
412408
ij_javascript_place_assignment_sign_on_next_line = false
@@ -501,23 +497,24 @@ ij_javascript_wrap_comments = false
501497
[{*.ctp,*.hphp,*.inc,*.module,*.php,*.php4,*.php5,*.phtml}]
502498
ij_continuation_indent_size = 4
503499
ij_php_align_assignments = true
504-
ij_php_align_class_constants = false
500+
ij_php_align_class_constants = true
501+
ij_php_align_enum_cases = true
505502
ij_php_align_group_field_declarations = false
506-
ij_php_align_inline_comments = true
503+
ij_php_align_inline_comments = false
507504
ij_php_align_key_value_pairs = true
508505
ij_php_align_match_arm_bodies = true
509506
ij_php_align_multiline_array_initializer_expression = true
510507
ij_php_align_multiline_binary_operation = false
511508
ij_php_align_multiline_chained_methods = false
512509
ij_php_align_multiline_extends_list = true
513510
ij_php_align_multiline_for = false
514-
ij_php_align_multiline_parameters = true
511+
ij_php_align_multiline_parameters = false
515512
ij_php_align_multiline_parameters_in_calls = false
516513
ij_php_align_multiline_ternary_operation = false
517514
ij_php_align_named_arguments = true
518515
ij_php_align_phpdoc_comments = false
519516
ij_php_align_phpdoc_param_names = false
520-
ij_php_anonymous_brace_style = next_line
517+
ij_php_anonymous_brace_style = end_of_line
521518
ij_php_api_weight = 28
522519
ij_php_array_initializer_new_line_after_left_brace = true
523520
ij_php_array_initializer_right_brace_on_new_line = true
@@ -533,7 +530,8 @@ ij_php_blank_lines_after_imports = 1
533530
ij_php_blank_lines_after_opening_tag = 1
534531
ij_php_blank_lines_after_package = 1
535532
ij_php_blank_lines_around_class = 1
536-
ij_php_blank_lines_around_constants = 1
533+
ij_php_blank_lines_around_constants = 0
534+
ij_php_blank_lines_around_enum_cases = 0
537535
ij_php_blank_lines_around_field = 1
538536
ij_php_blank_lines_around_method = 1
539537
ij_php_blank_lines_before_class_end = 0
@@ -543,15 +541,16 @@ ij_php_blank_lines_before_package = 1
543541
ij_php_blank_lines_before_return_statement = 1
544542
ij_php_blank_lines_between_imports = 1
545543
ij_php_block_brace_style = end_of_line
546-
ij_php_call_parameters_new_line_after_left_paren = false
547-
ij_php_call_parameters_right_paren_on_new_line = false
544+
ij_php_call_parameters_new_line_after_left_paren = true
545+
ij_php_call_parameters_right_paren_on_new_line = true
548546
ij_php_call_parameters_wrap = on_every_item
549547
ij_php_catch_on_new_line = true
550548
ij_php_category_weight = 28
551549
ij_php_class_brace_style = next_line
552550
ij_php_comma_after_last_argument = false
553551
ij_php_comma_after_last_array_element = true
554552
ij_php_comma_after_last_closure_use_var = false
553+
ij_php_comma_after_last_match_arm = true
555554
ij_php_comma_after_last_parameter = false
556555
ij_php_concat_spaces = true
557556
ij_php_copyright_weight = 4
@@ -561,15 +560,15 @@ ij_php_else_if_style = combine
561560
ij_php_else_on_new_line = true
562561
ij_php_example_weight = 28
563562
ij_php_extends_keyword_wrap = normal
564-
ij_php_extends_list_wrap = off
563+
ij_php_extends_list_wrap = on_every_item
565564
ij_php_fields_default_visibility = protected
566565
ij_php_filesource_weight = 28
567566
ij_php_finally_on_new_line = true
568567
ij_php_for_brace_force = always
569568
ij_php_for_statement_new_line_after_left_paren = false
570569
ij_php_for_statement_right_paren_on_new_line = false
571570
ij_php_for_statement_wrap = normal
572-
ij_php_force_empty_methods_in_one_line = false
571+
ij_php_force_empty_methods_in_one_line = true
573572
ij_php_force_short_declaration_array_style = true
574573
ij_php_getters_setters_naming_style = camel_case
575574
ij_php_getters_setters_order_style = getters_first
@@ -588,13 +587,13 @@ ij_php_keep_blank_lines_after_lbrace = 1
588587
ij_php_keep_blank_lines_before_right_brace = 0
589588
ij_php_keep_blank_lines_in_code = 1
590589
ij_php_keep_blank_lines_in_declarations = 0
591-
ij_php_keep_control_statement_in_one_line = true
590+
ij_php_keep_control_statement_in_one_line = false
592591
ij_php_keep_first_column_comment = false
593592
ij_php_keep_indents_on_empty_lines = false
594593
ij_php_keep_line_breaks = true
595594
ij_php_keep_rparen_and_lbrace_on_one_line = true
596595
ij_php_keep_simple_classes_in_one_line = true
597-
ij_php_keep_simple_methods_in_one_line = false
596+
ij_php_keep_simple_methods_in_one_line = true
598597
ij_php_lambda_brace_style = end_of_line
599598
ij_php_license_weight = 5
600599
ij_php_line_comment_add_space = false
@@ -622,13 +621,13 @@ ij_php_parentheses_expression_right_paren_on_new_line = false
622621
ij_php_phpdoc_blank_line_before_tags = true
623622
ij_php_phpdoc_blank_lines_around_parameters = true
624623
ij_php_phpdoc_keep_blank_lines = true
625-
ij_php_phpdoc_param_spaces_between_name_and_description = 1
626-
ij_php_phpdoc_param_spaces_between_tag_and_type = 1
627-
ij_php_phpdoc_param_spaces_between_type_and_name = 1
624+
ij_php_phpdoc_param_spaces_between_name_and_description = 2
625+
ij_php_phpdoc_param_spaces_between_tag_and_type = 2
626+
ij_php_phpdoc_param_spaces_between_type_and_name = 2
628627
ij_php_phpdoc_use_fqcn = true
629628
ij_php_phpdoc_wrap_long_lines = true
630629
ij_php_place_assignment_sign_on_next_line = false
631-
ij_php_place_parens_for_constructor = 0
630+
ij_php_place_parens_for_constructor = 1
632631
ij_php_property_read_weight = 11
633632
ij_php_property_weight = 10
634633
ij_php_property_write_weight = 12
@@ -705,7 +704,7 @@ ij_php_spaces_within_parentheses = false
705704
ij_php_spaces_within_short_echo_tags = true
706705
ij_php_spaces_within_switch_parentheses = false
707706
ij_php_spaces_within_while_parentheses = false
708-
ij_php_special_else_if_treatment = false
707+
ij_php_special_else_if_treatment = true
709708
ij_php_subpackage_weight = 28
710709
ij_php_ternary_operation_signs_on_next_line = true
711710
ij_php_ternary_operation_wrap = on_every_item
@@ -717,12 +716,12 @@ ij_php_upper_case_boolean_const = false
717716
ij_php_upper_case_null_const = false
718717
ij_php_uses_weight = 28
719718
ij_php_var_weight = 28
720-
ij_php_variable_naming_style = snake_case
719+
ij_php_variable_naming_style = camel_case
721720
ij_php_version_weight = 8
722721
ij_php_while_brace_force = always
723722
ij_php_while_on_new_line = true
724723

725-
[{*.har,*.jsb2,*.jsb3,*.json,.babelrc,.eslintrc,.stylelintrc,bowerrc,composer.lock,jest.config}]
724+
[{*.har,*.jsb2,*.jsb3,*.json,.babelrc,.eslintrc,.prettierrc,.stylelintrc,bowerrc,composer.lock,jest.config}]
726725
ij_continuation_indent_size = 4
727726
ij_json_array_wrapping = on_every_item
728727
ij_json_keep_blank_lines_in_code = 1
@@ -769,11 +768,17 @@ ij_html_space_around_equality_in_attribute = false
769768
ij_html_space_inside_empty_tag = true
770769
ij_html_text_wrap = off
771770

771+
[{*.http,*.rest}]
772+
indent_size = 0
773+
ij_continuation_indent_size = 4
774+
ij_http request_call_parameters_wrap = on_every_item
775+
772776
[{*.markdown,*.md}]
773777
ij_markdown_force_one_space_after_blockquote_symbol = true
774778
ij_markdown_force_one_space_after_header_symbol = true
775779
ij_markdown_force_one_space_after_list_bullet = true
776780
ij_markdown_force_one_space_between_words = true
781+
ij_markdown_format_tables = true
777782
ij_markdown_insert_quote_arrows_on_wrap = true
778783
ij_markdown_keep_indents_on_empty_lines = false
779784
ij_markdown_keep_line_breaks_inside_text_blocks = true

0 commit comments

Comments
 (0)