Skip to content

Commit 65faf23

Browse files
committed
Extend ESLint configuration from wp-scripts
This handles the Babel stuff. It should probably live in eslint-plugin
1 parent a265096 commit 65faf23

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

bin/test-create-block.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,13 @@ if [ "$expected" -ne "$actual" ]; then
6262
exit 1
6363
fi
6464

65-
# Create an ESLint config that uses the monorepo's custom import resolver. This
66-
# is needed because local @wordpress/* packages export paths pointing to built
67-
# files (build-module/), but we haven't run a build. The custom resolver maps
68-
# these to source files (src/) instead.
65+
# Create an ESLint config that extends wp-scripts' default config but uses the
66+
# monorepo's custom import resolver. This is needed because local @wordpress/*
67+
# packages export paths pointing to built files (build-module/), but we haven't
68+
# run a build. The custom resolver maps these to source files (src/) instead.
6969
cat > .eslintrc.js << 'EOF'
7070
module.exports = {
71-
root: true,
72-
extends: [ 'plugin:@wordpress/eslint-plugin/recommended' ],
71+
extends: [ require.resolve( '@wordpress/scripts/config/.eslintrc' ) ],
7372
settings: {
7473
'import/resolver': require.resolve( '../tools/eslint/import-resolver' ),
7574
},

0 commit comments

Comments
 (0)