|
| 1 | +root = true |
| 2 | + |
| 3 | +# Base styles from WordPress Coding Standards |
| 4 | +# https://github.com/WordPress/wordpress-develop/blob/master/.editorconfig |
| 5 | + |
| 6 | +[*] |
| 7 | +charset = utf-8 |
| 8 | +end_of_line = lf |
| 9 | +insert_final_newline = true |
| 10 | +trim_trailing_whitespace = true |
| 11 | + |
| 12 | +[*.yml] |
| 13 | +indent_style = space |
| 14 | +indent_size = 2 |
| 15 | + |
| 16 | +[*.md] |
| 17 | +trim_trailing_whitespace = false |
| 18 | + |
| 19 | +# Indentation override for all JS under theme directory |
| 20 | +[wp-content/themes/core/**/*.js] |
| 21 | +indent_style = tab |
| 22 | +spaces_within_imports = true |
| 23 | + |
| 24 | +# Matches the exact files either package.json or .travis.yml |
| 25 | +[{package.json,.travis.yml}] |
| 26 | +indent_style = space |
| 27 | +indent_size = 2 |
| 28 | + |
| 29 | +# Indentation override for all CSS under theme directory |
| 30 | +[wp-content/themes/core/**/**/*.pcss] |
| 31 | +indent_style = tab |
| 32 | + |
| 33 | +[*.json] |
| 34 | +indent_style = space |
| 35 | +tab_width = 4 |
| 36 | + |
| 37 | +[*.php] |
| 38 | +indent_style = tab |
| 39 | +ij_formatter_off_tag = @formatter:off |
| 40 | +ij_formatter_on_tag = @formatter:on |
| 41 | +ij_formatter_tags_enabled = false |
| 42 | +ij_php_align_assignments = true |
| 43 | +ij_php_align_class_constants = true |
| 44 | +ij_php_align_group_field_declarations = false |
| 45 | +ij_php_align_inline_comments = false |
| 46 | +ij_php_align_key_value_pairs = true |
| 47 | +ij_php_align_multiline_array_initializer_expression = true |
| 48 | +ij_php_align_phpdoc_comments = true |
| 49 | +ij_php_align_phpdoc_param_names = true |
| 50 | +ij_smart_tabs = true |
| 51 | +ij_php_array_initializer_new_line_after_left_brace = true |
| 52 | +ij_php_array_initializer_right_brace_on_new_line = true |
| 53 | +ij_php_array_initializer_wrap = on_every_item |
| 54 | +ij_php_blank_lines_after_class_header = 0 |
| 55 | +ij_php_blank_lines_after_function = 1 |
| 56 | +ij_php_blank_lines_after_imports = 1 |
| 57 | +ij_php_blank_lines_after_opening_tag = 0 |
| 58 | +ij_php_blank_lines_after_package = 0 |
| 59 | +ij_php_blank_lines_around_class = 1 |
| 60 | +ij_php_blank_lines_around_constants = 0 |
| 61 | +ij_php_blank_lines_around_field = 0 |
| 62 | +ij_php_blank_lines_around_method = 1 |
| 63 | +ij_php_blank_lines_before_class_end = 0 |
| 64 | +ij_php_blank_lines_before_imports = 1 |
| 65 | +ij_php_blank_lines_before_method_body = 0 |
| 66 | +ij_php_blank_lines_before_package = 1 |
| 67 | +ij_php_blank_lines_before_return_statement = 1 |
| 68 | +ij_php_block_brace_style = end_of_line |
| 69 | +ij_php_class_brace_style = end_of_line |
| 70 | +ij_php_comma_after_last_array_element = true |
| 71 | +ij_php_concat_spaces = true |
| 72 | +ij_php_do_while_brace_force = always |
| 73 | +ij_php_else_on_new_line = false |
| 74 | +ij_php_fields_default_visibility = private |
| 75 | +ij_php_finally_on_new_line = false |
| 76 | +ij_php_for_brace_force = always |
| 77 | +ij_php_force_short_declaration_array_style = true |
| 78 | +ij_php_group_use_wrap = on_every_item |
| 79 | +ij_php_if_brace_force = always |
| 80 | +ij_php_import_sorting = alphabetic |
| 81 | +ij_php_indent_break_from_case = true |
| 82 | +ij_php_indent_case_from_switch = true |
| 83 | +ij_php_indent_code_in_php_tags = false |
| 84 | +ij_php_keep_blank_lines_after_lbrace = 1 |
| 85 | +ij_php_keep_blank_lines_before_right_brace = 1 |
| 86 | +ij_php_keep_blank_lines_in_code = 2 |
| 87 | +ij_php_keep_blank_lines_in_declarations = 2 |
| 88 | +ij_php_keep_indents_on_empty_lines = false |
| 89 | +ij_php_keep_line_breaks = true |
| 90 | +ij_php_keep_rparen_and_lbrace_on_one_line = true |
| 91 | +ij_php_keep_simple_methods_in_one_line = false |
| 92 | +ij_php_lambda_brace_style = end_of_line |
| 93 | +ij_php_lower_case_boolean_const = true |
| 94 | +ij_php_lower_case_null_const = true |
| 95 | +ij_php_method_brace_style = end_of_line |
| 96 | +ij_php_namespace_brace_style = 1 |
| 97 | +ij_php_phpdoc_blank_line_before_tags = true |
| 98 | +ij_php_phpdoc_blank_lines_around_parameters = true |
| 99 | +ij_php_phpdoc_keep_blank_lines = true |
| 100 | +ij_php_phpdoc_param_spaces_between_name_and_description = 1 |
| 101 | +ij_php_phpdoc_param_spaces_between_tag_and_type = 1 |
| 102 | +ij_php_phpdoc_param_spaces_between_type_and_name = 1 |
| 103 | +ij_php_phpdoc_use_fqcn = true |
| 104 | +ij_php_phpdoc_wrap_long_lines = true |
| 105 | +ij_php_space_after_colon = true |
| 106 | +ij_php_space_after_colon_in_return_type = true |
| 107 | +ij_php_space_after_comma = true |
| 108 | +ij_php_space_after_for_semicolon = true |
| 109 | +ij_php_space_after_quest = true |
| 110 | +ij_php_space_after_type_cast = true |
| 111 | +ij_php_space_after_unary_not = true |
| 112 | +ij_php_space_before_array_initializer_left_brace = false |
| 113 | +ij_php_space_before_catch_keyword = true |
| 114 | +ij_php_space_before_catch_left_brace = true |
| 115 | +ij_php_space_before_catch_parentheses = true |
| 116 | +ij_php_space_before_class_left_brace = true |
| 117 | +ij_php_space_before_closure_left_parenthesis = true |
| 118 | +ij_php_space_before_colon = true |
| 119 | +ij_php_space_before_colon_in_return_type = false |
| 120 | +ij_php_space_before_comma = false |
| 121 | +ij_php_space_before_do_left_brace = true |
| 122 | +ij_php_space_before_else_keyword = true |
| 123 | +ij_php_space_before_else_left_brace = true |
| 124 | +ij_php_space_before_finally_keyword = true |
| 125 | +ij_php_space_before_finally_left_brace = true |
| 126 | +ij_php_space_before_for_left_brace = true |
| 127 | +ij_php_space_before_for_parentheses = true |
| 128 | +ij_php_space_before_for_semicolon = false |
| 129 | +ij_php_space_before_if_left_brace = true |
| 130 | +ij_php_space_before_if_parentheses = true |
| 131 | +ij_php_space_before_method_call_parentheses = false |
| 132 | +ij_php_space_before_method_left_brace = true |
| 133 | +ij_php_space_before_method_parentheses = false |
| 134 | +ij_php_space_before_quest = true |
| 135 | +ij_php_space_before_switch_left_brace = true |
| 136 | +ij_php_space_before_switch_parentheses = true |
| 137 | +ij_php_space_before_try_left_brace = true |
| 138 | +ij_php_space_before_unary_not = true |
| 139 | +ij_php_space_before_while_keyword = true |
| 140 | +ij_php_space_before_while_left_brace = true |
| 141 | +ij_php_space_before_while_parentheses = true |
| 142 | +ij_php_space_between_ternary_quest_and_colon = false |
| 143 | +ij_php_spaces_around_additive_operators = true |
| 144 | +ij_php_spaces_around_arrow = false |
| 145 | +ij_php_spaces_around_assignment_in_declare = false |
| 146 | +ij_php_spaces_around_assignment_operators = true |
| 147 | +ij_php_spaces_around_bitwise_operators = true |
| 148 | +ij_php_spaces_around_equality_operators = true |
| 149 | +ij_php_spaces_around_logical_operators = true |
| 150 | +ij_php_spaces_around_multiplicative_operators = true |
| 151 | +ij_php_spaces_around_null_coalesce_operator = true |
| 152 | +ij_php_spaces_around_relational_operators = true |
| 153 | +ij_php_spaces_around_shift_operators = true |
| 154 | +ij_php_spaces_around_unary_operator = true |
| 155 | +ij_php_spaces_around_var_within_brackets = true |
| 156 | +ij_php_spaces_within_array_initializer_braces = true |
| 157 | +ij_php_spaces_within_brackets = false |
| 158 | +ij_php_spaces_within_catch_parentheses = true |
| 159 | +ij_php_spaces_within_for_parentheses = true |
| 160 | +ij_php_spaces_within_if_parentheses = true |
| 161 | +ij_php_spaces_within_method_call_parentheses = true |
| 162 | +ij_php_spaces_within_method_parentheses = true |
| 163 | +ij_php_spaces_within_parentheses = true |
| 164 | +ij_php_spaces_within_short_echo_tags = true |
| 165 | +ij_php_spaces_within_switch_parentheses = true |
| 166 | +ij_php_spaces_within_while_parentheses = true |
| 167 | +ij_php_special_else_if_treatment = true |
| 168 | +ij_php_ternary_operation_signs_on_next_line = false |
| 169 | +ij_php_ternary_operation_wrap = off |
| 170 | +ij_php_upper_case_boolean_const = false |
| 171 | +ij_php_upper_case_null_const = false |
| 172 | +ij_php_variable_naming_style = snake_case |
| 173 | +ij_php_while_brace_force = always |
| 174 | +ij_php_while_on_new_line = false |
0 commit comments