Skip to content

Commit

Permalink
v1.1.9 (#48)
Browse files Browse the repository at this point in the history
v1.1.9
  • Loading branch information
aristath authored Jul 18, 2019
2 parents f2b72b0 + 7952907 commit 0f21761
Show file tree
Hide file tree
Showing 33 changed files with 664 additions and 259 deletions.
317 changes: 317 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,317 @@
module.exports = {
'env': {
'browser': true,
'es6': true
},
'extends': 'eslint:recommended',
'globals': {
'Atomics': 'readonly',
'SharedArrayBuffer': 'readonly',
'wp': 'readonly',
'jQuery': 'readonly',
'_': 'readonly'
},
'parserOptions': {
'ecmaVersion': 2018
},
'rules': {
"camelcase": ["error", { "properties": "never" }],
'accessor-pairs': 'error',
'array-bracket-newline': 'off',
'array-bracket-spacing': [
'error',
'always'
],
'array-callback-return': 'error',
'array-element-newline': 'off',
'arrow-body-style': 'error',
'arrow-parens': 'error',
'arrow-spacing': 'error',
'block-scoped-var': 'error',
'block-spacing': 'error',
'brace-style': [
'error',
'1tbs'
],
'callback-return': 'error',
'capitalized-comments': 'off',
'class-methods-use-this': 'error',
'comma-dangle': 'error',
'comma-spacing': [
'error',
{
'after': true,
'before': false
}
],
'comma-style': [
'error',
'last'
],
'complexity': 'off',
'computed-property-spacing': 'off',
'consistent-return': 'off',
'consistent-this': 'off',
'curly': 'error',
'default-case': 'off',
'dot-location': [
'error',
'property'
],
'dot-notation': [
'error',
{
'allowKeywords': true
}
],
'eol-last': 'error',
'eqeqeq': 'error',
'func-call-spacing': 'off',
'func-name-matching': 'error',
'func-names': 'off',
'func-style': 'off',
'function-paren-newline': 'error',
'generator-star-spacing': 'error',
'global-require': 'error',
'guard-for-in': 'error',
'handle-callback-err': 'error',
'id-blacklist': 'error',
'id-length': 'off',
'id-match': 'error',
'implicit-arrow-linebreak': 'error',
'indent': 'off',
'indent-legacy': 'off',
'init-declarations': 'off',
'jsx-quotes': 'error',
'key-spacing': 'error',
'keyword-spacing': [
'error',
{
'after': true,
'before': true
}
],
'line-comment-position': 'off',
'linebreak-style': [
'error',
'unix'
],
'lines-around-comment': 'error',
'lines-around-directive': 'error',
'lines-between-class-members': 'error',
'max-classes-per-file': 'error',
'max-depth': 'error',
'max-len': 'off',
'max-lines': 'off',
'max-lines-per-function': 'off',
'max-nested-callbacks': 'error',
'max-params': 'off',
'max-statements': 'off',
'max-statements-per-line': 'off',
'multiline-comment-style': [
'error',
'separate-lines'
],
'multiline-ternary': [
'error',
'never'
],
'new-parens': 'error',
'newline-after-var': 'off',
'newline-before-return': 'off',
'newline-per-chained-call': 'off',
'no-alert': 'error',
'no-array-constructor': 'error',
'no-await-in-loop': 'error',
'no-bitwise': 'off',
'no-buffer-constructor': 'error',
'no-caller': 'error',
'no-catch-shadow': 'error',
'no-confusing-arrow': 'error',
'no-console': 'error',
'no-continue': 'error',
'no-div-regex': 'error',
'no-duplicate-imports': 'error',
'no-else-return': 'error',
'no-empty': [
'error',
{
'allowEmptyCatch': true
}
],
'no-empty-function': 'off',
'no-eq-null': 'error',
'no-eval': 'error',
'no-extend-native': 'error',
'no-extra-bind': 'error',
'no-extra-label': 'error',
'no-extra-parens': 'off',
'no-floating-decimal': 'error',
'no-implicit-coercion': 'error',
'no-implicit-globals': 'off',
'no-implied-eval': 'error',
'no-inline-comments': 'off',
'no-invalid-this': 'error',
'no-iterator': 'error',
'no-label-var': 'error',
'no-labels': 'error',
'no-lone-blocks': 'error',
'no-lonely-if': 'off',
'no-loop-func': 'error',
'no-magic-numbers': 'off',
'no-mixed-operators': 'off',
'no-mixed-requires': 'error',
'no-multi-assign': 'off',
'no-multi-spaces': 'off',
'no-multi-str': 'error',
'no-multiple-empty-lines': 'error',
'no-native-reassign': 'error',
'no-negated-condition': 'off',
'no-negated-in-lhs': 'error',
'no-nested-ternary': 'error',
'no-new': 'error',
'no-new-func': 'error',
'no-new-object': 'error',
'no-new-require': 'error',
'no-new-wrappers': 'error',
'no-octal-escape': 'error',
'no-param-reassign': 'off',
'no-path-concat': 'error',
'no-plusplus': 'off',
'no-process-env': 'error',
'no-process-exit': 'error',
'no-proto': 'error',
'no-restricted-globals': 'error',
'no-restricted-imports': 'error',
'no-restricted-modules': 'error',
'no-restricted-properties': 'error',
'no-restricted-syntax': 'error',
'no-return-assign': 'error',
'no-return-await': 'error',
'no-script-url': 'error',
'no-self-compare': 'error',
'no-sequences': 'off',
'no-shadow': 'off',
'no-spaced-func': 'off',
'no-sync': 'error',
'no-tabs': [
'error',
{
'allowIndentationTabs': true
}
],
'no-template-curly-in-string': 'error',
'no-ternary': 'off',
'no-throw-literal': 'error',
'no-trailing-spaces': 'error',
'no-undef-init': 'error',
'no-undefined': 'error',
'no-underscore-dangle': 'off',
'no-unmodified-loop-condition': 'error',
'no-unneeded-ternary': 'off',
'no-unused-expressions': 'off',
'no-use-before-define': 'off',
'no-useless-call': 'error',
'no-useless-computed-key': 'error',
'no-useless-concat': 'error',
'no-useless-constructor': 'error',
'no-useless-rename': 'error',
'no-useless-return': 'error',
'no-var': 'off',
'no-void': 'error',
'no-warning-comments': 'off',
'no-whitespace-before-property': 'error',
'nonblock-statement-body-position': 'error',
'object-curly-newline': 'error',
'object-curly-spacing': [
'error',
'always'
],
'object-property-newline': 'error',
'object-shorthand': 'off',
'one-var': 'error',
'one-var-declaration-per-line': [
'error',
'initializations'
],
'operator-assignment': 'off',
'operator-linebreak': 'error',
'padded-blocks': 'off',
'padding-line-between-statements': 'error',
'prefer-arrow-callback': 'off',
'prefer-const': 'error',
'prefer-destructuring': 'off',
'prefer-named-capture-group': 'off',
'prefer-numeric-literals': 'error',
'prefer-object-spread': 'off',
'prefer-promise-reject-errors': 'error',
'prefer-reflect': 'off',
'prefer-rest-params': 'error',
'prefer-spread': 'error',
'prefer-template': 'off',
'quote-props': 'off',
'quotes': [
'error',
'single'
],
'radix': [
'error',
'always'
],
'require-await': 'error',
'require-jsdoc': 'off',
'require-unicode-regexp': 'off',
'rest-spread-spacing': 'error',
'semi': 'error',
'semi-spacing': [
'error',
{
'after': true,
'before': false
}
],
'semi-style': [
'error',
'last'
],
'sort-imports': 'error',
'sort-keys': 'off',
'sort-vars': 'off',
'space-before-blocks': 'error',
'space-before-function-paren': 'off',
"space-in-parens": ["error", "always", { "exceptions": ["empty", "{}"] }],
'space-infix-ops': 'error',
'space-unary-ops': 'off',
'spaced-comment': [
'error',
'always'
],
'strict': [
'error',
'never'
],
'switch-colon-spacing': [
'error',
{
'after': true,
'before': false
}
],
'symbol-description': 'error',
'template-curly-spacing': 'error',
'template-tag-spacing': 'error',
'unicode-bom': [
'error',
'never'
],
'valid-jsdoc': 'off',
'vars-on-top': 'error',
'wrap-iife': 'error',
'wrap-regex': 'off',
'yield-star-spacing': 'error',
'yoda': [
'error',
'always'
]
}
};
9 changes: 0 additions & 9 deletions .eslintrc.json

This file was deleted.

4 changes: 4 additions & 0 deletions assets/css/blocks/group.css
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,7 @@

.wp-block-group .wp-block-columns {
margin-bottom: 0; }

.wp-block-group__inner-container {
display: flex;
justify-content: center; }
2 changes: 1 addition & 1 deletion assets/css/blocks/group.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions assets/css/blocks/group.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,8 @@
margin-bottom: 0;
}
}

.wp-block-group__inner-container {
display: flex;
justify-content: center;
}
2 changes: 1 addition & 1 deletion assets/images/flexbox/justify-content-center.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion assets/images/flexbox/justify-content-flex-end.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion assets/images/flexbox/justify-content-flex-start.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion assets/images/flexbox/justify-content-space-around.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion assets/images/flexbox/justify-content-space-between.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion assets/images/flexbox/justify-content-space-evenly.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions assets/js/customizer-gridd-set-setting-value.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Based on the kirkiSetSettingValue object with some minor tweaks.
*/
var griddSetSettingValue = {
var griddSetSettingValue = { // eslint-disable-line no-unused-vars

/**
* Set the value of the control.
Expand Down Expand Up @@ -36,7 +36,7 @@ var griddSetSettingValue = {
'background_repeat' === setting ||
'background_repeat' === setting ||
'background_size' === setting ||
'background_attachment'
'background_attachment' === setting
) {
$this.setValue( setting, value );
}
Expand Down
Loading

0 comments on commit 0f21761

Please sign in to comment.