Skip to content

Commit 0904550

Browse files
authored
packaged version 5.0.6 (#440)
* packaged version 5.0.6 * Add gitignore
1 parent 10c8d25 commit 0904550

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+14113
-3222
lines changed

.babelrc

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"presets": [
3+
[
4+
"@babel/preset-env",
5+
{
6+
"targets": {
7+
"browsers": [
8+
"last 3 versions",
9+
"safari >= 9",
10+
"ie >= 11"
11+
]
12+
},
13+
"useBuiltIns": "usage"
14+
}
15+
]
16+
],
17+
"plugins": [
18+
"@babel/plugin-transform-runtime",
19+
"lodash",
20+
"@babel/plugin-syntax-dynamic-import",
21+
"@babel/plugin-proposal-object-rest-spread",
22+
"@babel/plugin-transform-object-assign",
23+
"transform-object-entries",
24+
[
25+
"@babel/plugin-transform-react-jsx",
26+
{
27+
"pragma": "wp.element.createElement"
28+
}
29+
]
30+
],
31+
"env": {
32+
"test": {
33+
"plugins": [
34+
"istanbul"
35+
]
36+
}
37+
}
38+
}

.editorconfig

+174
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,174 @@
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

.eslintrc

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"parser": "babel-eslint",
3+
"extends": [
4+
"airbnb",
5+
"plugin:import/errors",
6+
"plugin:import/warnings"
7+
],
8+
"plugins": [
9+
"react"
10+
],
11+
"settings": {
12+
"import/ignore": [
13+
"node_modules",
14+
"\\.(html|json|properties)$"
15+
],
16+
"import/resolver": {
17+
"webpack": {
18+
"config": "webpack.config.js"
19+
}
20+
}
21+
},
22+
"rules": {
23+
"eqeqeq": [2, "allow-null"],
24+
"func-names": 0,
25+
"import/extensions": 0,
26+
"import/no-unresolved": 0,
27+
"import/no-named-as-default": 0,
28+
"import/prefer-default-export": 0,
29+
"import/no-extraneous-dependencies": 0,
30+
"no-useless-escape": 0,
31+
"no-tabs": 0,
32+
"indent": [
33+
"error",
34+
"tab"
35+
],
36+
"new-cap": 0,
37+
"no-console": 0,
38+
"no-plusplus": 0,
39+
"no-undef": 0,
40+
"global-require": 0,
41+
"class-methods-use-this": 0,
42+
"no-multi-spaces": [2, {"exceptions": {"VariableDeclarator": true}}],
43+
"no-param-reassign": [2, {"props": false}],
44+
"no-script-url": 0,
45+
"no-use-before-define": [2, "nofunc"],
46+
"quote-props": [2, "consistent-as-needed"],
47+
"react/react-in-jsx-scope": "off",
48+
"react/prop-types": "off",
49+
"react/jsx-indent": [2, "tab"],
50+
"react/jsx-indent-props": [2, "tab"],
51+
"react/jsx-no-bind": [2, {
52+
"ignoreRefs": false,
53+
"allowArrowFunctions": false,
54+
"allowBind": false
55+
}],
56+
"react/forbid-prop-types": 0,
57+
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
58+
"space-before-function-paren": 0,
59+
"linebreak-style": 0,
60+
"spaced-comment": 0,
61+
"max-len": [
62+
"error",
63+
250,
64+
4
65+
]
66+
}
67+
}

.gitignore

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# generated files #
2+
###################
3+
4+
.DS_Store*
5+
ehthumbs.db
6+
._*
7+
*~
8+
.svn
9+
.cvs
10+
*.bak
11+
*.swp
12+
Thumbs.db
13+
.DS_Store
14+
.idea
15+
pimple.json
16+
.phpstorm.meta.php
17+
*.un~
18+
.sass-cache
19+
.scssc
20+
/node_modules/
21+
phpdoc.json
22+
23+
# Packages #
24+
############
25+
26+
*.7z
27+
*.dmg
28+
*.gz
29+
*.bz2
30+
*.iso
31+
*.jar
32+
*.rar
33+
*.tar
34+
*.zip
35+
*.tgz
36+
37+
# Logs and databases #
38+
######################
39+
40+
*.log
41+
*.sql
42+
43+
# Local configuration #
44+
#######################
45+
46+
local-config.json

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
8.9.3

.stylelintrc.json

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"extends": "stylelint-config-standard",
3+
"rules": {
4+
"at-rule-name-space-after": "always",
5+
"block-no-empty": null,
6+
"block-opening-brace-newline-after": "always",
7+
"property-no-unknown": null,
8+
"declaration-block-no-duplicate-properties": [ true, {
9+
"ignore": [ "consecutive-duplicates" ]
10+
} ],
11+
"declaration-block-semicolon-newline-before": "never-multi-line",
12+
"function-comma-newline-before": "never-multi-line",
13+
"function-parentheses-space-inside": "never",
14+
"function-url-quotes": "always",
15+
"indentation": "tab",
16+
"max-nesting-depth": [ 5, {
17+
"ignore": [ "blockless-at-rules" ]
18+
} ],
19+
"no-extra-semicolons": true,
20+
"no-invalid-double-slash-comments": null,
21+
"rule-empty-line-before": [ "always-multi-line", {
22+
"ignore": [ "after-comment" ]
23+
} ],
24+
"selector-pseudo-element-colon-notation": "single",
25+
"value-no-vendor-prefix": true
26+
}
27+
}

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## [5.0.6]
4+
5+
### Changed
6+
- Update plugin readme `tested up` version
7+
38
## [5.0.5]
49

510
### Changed
@@ -1904,6 +1909,7 @@
19041909
in fact, reset postdata, so far as Gutenberg 3.2.0 is concerned.
19051910

19061911

1912+
[5.0.5]: https://github.com/bigcommerce/bigcommerce-for-wordpress/compare/5.0.5...5.0.6
19071913
[5.0.5]: https://github.com/bigcommerce/bigcommerce-for-wordpress/compare/5.0.4...5.0.5
19081914
[5.0.4]: https://github.com/bigcommerce/bigcommerce-for-wordpress/compare/5.0.3...5.0.4
19091915
[5.0.3]: https://github.com/bigcommerce/bigcommerce-for-wordpress/compare/5.0.2...5.0.3

0 commit comments

Comments
 (0)