Skip to content

Commit

Permalink
Merge branch 'develop' into remove-old-layout-picker
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerardo Pacheco committed Jan 8, 2021
2 parents d52ed6d + 3d3dc96 commit 82b98de
Show file tree
Hide file tree
Showing 6 changed files with 4,757 additions and 4,191 deletions.
18 changes: 15 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ parameters:
type: string
# Hash points to previous version with node 12. When everything works with node 14 it can be removed
default: "circleci/android:api-29-node@sha256:71d61d6c21b29948d57120f476a83cc322a280979bce355c5a0ad771293ca380"
linux-machine-image:
type: string
# Latest supported ubuntu image from https://circleci.com/docs/2.0/configuration-reference/#available-machine-images
default: "ubuntu-2004:202010-01"

jobs:
checks:
Expand All @@ -63,11 +67,19 @@ jobs:
check-correctness:
type: boolean
default: false
docker:
- image: circleci/node:14
machine:
image: << pipeline.parameters.linux-machine-image >>
steps:
- checkout
- checkout-submodules
- run:
name: Install newer nvm
command: curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash
- run:
name: Install newer node using nvm
command: |
cd gutenberg
nvm install --latest-npm
- when:
condition: <<parameters.check-correctness>>
steps:
Expand Down Expand Up @@ -100,7 +112,7 @@ jobs:
type: string
default: ""
machine:
image: ubuntu-2004:202010-01 # Latest supported ubuntu image from https://circleci.com/docs/2.0/configuration-reference/#available-machine-images
image: << pipeline.parameters.linux-machine-image >>
steps:
- checkout
- checkout-submodules
Expand Down
19 changes: 13 additions & 6 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
/**
* External dependencies
*/
const { map } = require( 'lodash' );

module.exports = {
parser: "babel-eslint",
env: {
Expand All @@ -19,5 +14,17 @@ module.exports = {
],
extends: [
"plugin:@wordpress/eslint-plugin/recommended",
]
],
settings: {
'import/resolver': {
'node': {
'moduleDirectory': ['node_modules', 'gutenberg/node_modules']
}
},
},
rules: {
// do not throw an error if imported dependencies are
// declared in `package.json` or `gutenberg/package.json`
"import/no-extraneous-dependencies": ["error", {"packageDir": ['.', './gutenberg/']}]
}
};
1 change: 1 addition & 0 deletions RELEASE-NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Unreleased
* [***] New Block: File [https://github.com/wordpress-mobile/gutenberg-mobile/pull/2835]
* [**] Image block - Add link picker to the block settings and enhance link settings with auto-hide options [https://github.com/WordPress/gutenberg/pull/27292]
* [*] Fix button link setting, rel link will not be overwritten if modified by the user.
* [*] Fix minor bug affecting link picker search results [https://github.com/WordPress/gutenberg/pull/27867]

1.42.0
------
Expand Down
7 changes: 7 additions & 0 deletions bin/ci-checks-js.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ fi

if [ "$CHECK_CORRECTNESS" = true ] ; then
checkDiff

# Need to build gutenberg packages before linting so that eslint-plugin-import can resolve those.
# See https://github.com/WordPress/gutenberg/pull/22088 for more information.
cd gutenberg
npm run build:packages || pFail
cd ..

npm run lint || pFail
fi

Expand Down
Loading

0 comments on commit 82b98de

Please sign in to comment.