diff --git a/.eslintrc b/.eslintrc index b0494899c56c..a58762528aab 100644 --- a/.eslintrc +++ b/.eslintrc @@ -18,6 +18,7 @@ "header", "jsdoc", "jsx-a11y", + "markdown", "react", "react-hooks" ], @@ -412,11 +413,20 @@ "*.md", "**/*.md" ], - "plugins": [ - "markdown" + "processor": "markdown/markdown" + }, + { + "files": [ + "**/*.md/*.js" ], + "parserOptions": { + "ecmaFeatures": { + "impliedStrict": true + } + }, "rules": { "@wordpress/dependency-group": "off", + "no-console": "off", "no-undef": "off", "no-unused-vars": "off", "header/header": "off", diff --git a/package-lock.json b/package-lock.json index a8aa4bae5ad8..c396a7ae8e2c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -119,7 +119,7 @@ "eslint-plugin-jest-dom": "^3.6.5", "eslint-plugin-jsdoc": "^30.7.13", "eslint-plugin-jsx-a11y": "^6.4.1", - "eslint-plugin-markdown": "^1.0.2", + "eslint-plugin-markdown": "^2.0.0", "eslint-plugin-node": "^11.1.0", "eslint-plugin-prettier": "^3.3.1", "eslint-plugin-react": "^7.22.0", @@ -1803,6 +1803,7 @@ "version": "0.19.3", "resolved": "https://registry.npmjs.org/@daybrush/drag/-/drag-0.19.3.tgz", "integrity": "sha512-gW5bffP4JWBWXOnkDQ3rKm0Bw0wEapIOHi/8DJDMUVi3jpS/haMFppQ50CcpABgBtMmIPrnHCCx2zn4ue8HS9Q==", + "peer": true, "dependencies": { "@daybrush/utils": "^1.0.0" }, @@ -1813,12 +1814,14 @@ "node_modules/@daybrush/drag/node_modules/@daybrush/utils": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/@daybrush/utils/-/utils-1.4.0.tgz", - "integrity": "sha512-P+l76QjGFwu8IbrFoIHO1equrL02h6wYJLRZ37Snr6o3bPEwPS0mdJqyTZipHMhrWoR44UVtZTUi41GPCDc9PQ==" + "integrity": "sha512-P+l76QjGFwu8IbrFoIHO1equrL02h6wYJLRZ37Snr6o3bPEwPS0mdJqyTZipHMhrWoR44UVtZTUi41GPCDc9PQ==", + "peer": true }, "node_modules/@daybrush/utils": { "version": "0.10.5", "resolved": "https://registry.npmjs.org/@daybrush/utils/-/utils-0.10.5.tgz", - "integrity": "sha512-VCPbgJgImkUmGHX33drZJh/5FYBhfSM+EFqlBY7fzKIahBGEemjYfninVSp9BdzqF9P2MyCh7R3hgxmySXLEzg==" + "integrity": "sha512-VCPbgJgImkUmGHX33drZJh/5FYBhfSM+EFqlBY7fzKIahBGEemjYfninVSp9BdzqF9P2MyCh7R3hgxmySXLEzg==", + "peer": true }, "node_modules/@discoveryjs/json-ext": { "version": "0.5.2", @@ -1845,7 +1848,8 @@ "node_modules/@egjs/component": { "version": "2.2.2", "resolved": "https://registry.npmjs.org/@egjs/component/-/component-2.2.2.tgz", - "integrity": "sha512-2m6nu6/Mbs6VnoT4IHFGUBX6V82Zp01zDmlWpIJ3fMatHpe7BB1qUYFgMmSWGY0uOvOl4plvflwbCRUAGMfwWQ==" + "integrity": "sha512-2m6nu6/Mbs6VnoT4IHFGUBX6V82Zp01zDmlWpIJ3fMatHpe7BB1qUYFgMmSWGY0uOvOl4plvflwbCRUAGMfwWQ==", + "peer": true }, "node_modules/@egjs/list-differ": { "version": "1.0.0", @@ -4304,6 +4308,7 @@ "version": "0.2.1", "resolved": "https://registry.npmjs.org/@scena/dragscroll/-/dragscroll-0.2.1.tgz", "integrity": "sha512-8WrABWGvaALt0xMgesVZuA9Utt1q3zmGyqzWT22W1gfeKwVriqHTVldUQZevWIpgpnpIJtIW+/xFVsLtpmMsSA==", + "peer": true, "dependencies": { "@egjs/component": "^2.1.2" } @@ -13584,7 +13589,8 @@ "node_modules/brcast": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/brcast/-/brcast-2.0.2.tgz", - "integrity": "sha512-Tfn5JSE7hrUlFcOoaLzVvkbgIemIorMIyoMr3TgvszWW7jFt2C9PdeMLtysYD9RU0MmU17b69+XJG1eRY2OBRg==" + "integrity": "sha512-Tfn5JSE7hrUlFcOoaLzVvkbgIemIorMIyoMr3TgvszWW7jFt2C9PdeMLtysYD9RU0MmU17b69+XJG1eRY2OBRg==", + "peer": true }, "node_modules/brorand": { "version": "1.1.0", @@ -16077,6 +16083,7 @@ "version": "0.2.6", "resolved": "https://registry.npmjs.org/css-styled/-/css-styled-0.2.6.tgz", "integrity": "sha512-xIc8O6IXo9opmxaC5jvJuPVThvsHHot3P3n2V1w1jgKZC8uIcfasq2VXVV6mQVlNy0TrpyBTphtVWYQB+R4Sxg==", + "peer": true, "dependencies": { "@daybrush/utils": "^1.0.0", "string-hash": "^1.1.3" @@ -16088,7 +16095,8 @@ "node_modules/css-styled/node_modules/@daybrush/utils": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/@daybrush/utils/-/utils-1.4.0.tgz", - "integrity": "sha512-P+l76QjGFwu8IbrFoIHO1equrL02h6wYJLRZ37Snr6o3bPEwPS0mdJqyTZipHMhrWoR44UVtZTUi41GPCDc9PQ==" + "integrity": "sha512-P+l76QjGFwu8IbrFoIHO1equrL02h6wYJLRZ37Snr6o3bPEwPS0mdJqyTZipHMhrWoR44UVtZTUi41GPCDc9PQ==", + "peer": true }, "node_modules/css-to-react-native": { "version": "3.0.0", @@ -17003,6 +17011,7 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/direction/-/direction-1.0.4.tgz", "integrity": "sha512-GYqKi1aH7PJXxdhTeZBFrg8vUBeKXi+cNprXsC1kpJcbcVnV9wBsrOu1cQEdG0WeQwlfHiy3XvnKfIrJ2R0NzQ==", + "peer": true, "bin": { "direction": "cli.js" }, @@ -18249,17 +18258,19 @@ } }, "node_modules/eslint-plugin-markdown": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/eslint-plugin-markdown/-/eslint-plugin-markdown-1.0.2.tgz", - "integrity": "sha512-BfvXKsO0K+zvdarNc801jsE/NTLmig4oKhZ1U3aSUgTf2dB/US5+CrfGxMsCK2Ki1vS1R3HPok+uYpufFndhzw==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-markdown/-/eslint-plugin-markdown-2.0.0.tgz", + "integrity": "sha512-zt10JoexHeJFMTE5egDcetAJ34bn5k/92s0wAuRZfhDAyI0ryEj+O91JL2CbBExajie6BE5L63y47dN1Sbp6mQ==", "dev": true, "dependencies": { - "object-assign": "^4.0.1", "remark-parse": "^5.0.0", "unified": "^6.1.2" }, "engines": { - "node": "^6.14.0 || ^8.10.0 || >=9.10.0" + "node": "^8.10.0 || ^10.12.0 || >= 12.0.0" + }, + "peerDependencies": { + "eslint": ">=6.0.0" } }, "node_modules/eslint-plugin-markdown/node_modules/parse-entities": { @@ -20932,7 +20943,8 @@ "node_modules/framework-utils": { "version": "0.3.4", "resolved": "https://registry.npmjs.org/framework-utils/-/framework-utils-0.3.4.tgz", - "integrity": "sha512-Psekd+sXiHxtjLvK6aqi7vw6sQpShfBQSYlLkxCyhVzpmeTdxv1lCq8BGx++Mm5yw+MUn5IA4WKNO6LZFtOe2Q==" + "integrity": "sha512-Psekd+sXiHxtjLvK6aqi7vw6sQpShfBQSYlLkxCyhVzpmeTdxv1lCq8BGx++Mm5yw+MUn5IA4WKNO6LZFtOe2Q==", + "peer": true }, "node_modules/fresh": { "version": "0.5.2", @@ -35578,6 +35590,7 @@ "version": "0.2.4", "resolved": "https://registry.npmjs.org/react-css-styled/-/react-css-styled-0.2.4.tgz", "integrity": "sha512-mgO9iRw6qgKIIOHy5fUb7tkx2s3SRKlxQCRElibY6UqGOAc4C0X4Hk5xpPY3k7cksJ9oeiDniXiR7ToE7AY6uw==", + "peer": true, "dependencies": { "css-styled": "^0.2.6", "framework-utils": "^0.3.4" @@ -36672,6 +36685,7 @@ "version": "1.3.1", "resolved": "https://registry.npmjs.org/react-with-direction/-/react-with-direction-1.3.1.tgz", "integrity": "sha512-aGcM21ZzhqeXFvDCfPj0rVNYuaVXfTz5D3Rbn0QMz/unZe+CCiLHthrjQWO7s6qdfXORgYFtmS7OVsRgSk5LXQ==", + "peer": true, "dependencies": { "airbnb-prop-types": "^2.10.0", "brcast": "^2.0.2", @@ -36691,6 +36705,7 @@ "version": "1.5.2", "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-1.5.2.tgz", "integrity": "sha512-95k0GDqvBjZavkuvzx/YqVLv/6YYa17fz6ILMSf7neqQITCPbnfEnQvEgMPNjH4kgobe7+WIL0yJEHku+H3qtQ==", + "peer": true, "engines": { "node": ">=0.10.0" } @@ -39899,7 +39914,8 @@ "node_modules/string-hash": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/string-hash/-/string-hash-1.1.3.tgz", - "integrity": "sha1-6Kr8CsGFW0Zmkp7X3RJ1311sgRs=" + "integrity": "sha1-6Kr8CsGFW0Zmkp7X3RJ1311sgRs=", + "peer": true }, "node_modules/string-length": { "version": "4.0.1", @@ -46191,21 +46207,21 @@ "version": "0.19.3", "resolved": "https://registry.npmjs.org/@daybrush/drag/-/drag-0.19.3.tgz", "integrity": "sha512-gW5bffP4JWBWXOnkDQ3rKm0Bw0wEapIOHi/8DJDMUVi3jpS/haMFppQ50CcpABgBtMmIPrnHCCx2zn4ue8HS9Q==", - "requires": { - "@daybrush/utils": "^1.0.0" - }, + "peer": true, + "requires": {}, "dependencies": { "@daybrush/utils": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@daybrush/utils/-/utils-1.4.0.tgz", - "integrity": "sha512-P+l76QjGFwu8IbrFoIHO1equrL02h6wYJLRZ37Snr6o3bPEwPS0mdJqyTZipHMhrWoR44UVtZTUi41GPCDc9PQ==" + "version": "https://registry.npmjs.org/@daybrush/utils/-/utils-1.4.0.tgz", + "integrity": "sha512-P+l76QjGFwu8IbrFoIHO1equrL02h6wYJLRZ37Snr6o3bPEwPS0mdJqyTZipHMhrWoR44UVtZTUi41GPCDc9PQ==", + "peer": true } } }, "@daybrush/utils": { "version": "0.10.5", "resolved": "https://registry.npmjs.org/@daybrush/utils/-/utils-0.10.5.tgz", - "integrity": "sha512-VCPbgJgImkUmGHX33drZJh/5FYBhfSM+EFqlBY7fzKIahBGEemjYfninVSp9BdzqF9P2MyCh7R3hgxmySXLEzg==" + "integrity": "sha512-VCPbgJgImkUmGHX33drZJh/5FYBhfSM+EFqlBY7fzKIahBGEemjYfninVSp9BdzqF9P2MyCh7R3hgxmySXLEzg==", + "peer": true }, "@discoveryjs/json-ext": { "version": "0.5.2", @@ -46229,7 +46245,8 @@ "@egjs/component": { "version": "2.2.2", "resolved": "https://registry.npmjs.org/@egjs/component/-/component-2.2.2.tgz", - "integrity": "sha512-2m6nu6/Mbs6VnoT4IHFGUBX6V82Zp01zDmlWpIJ3fMatHpe7BB1qUYFgMmSWGY0uOvOl4plvflwbCRUAGMfwWQ==" + "integrity": "sha512-2m6nu6/Mbs6VnoT4IHFGUBX6V82Zp01zDmlWpIJ3fMatHpe7BB1qUYFgMmSWGY0uOvOl4plvflwbCRUAGMfwWQ==", + "peer": true }, "@egjs/list-differ": { "version": "1.0.0", @@ -47218,10 +47235,8 @@ "integrity": "sha512-6+iaCMh/JXJaB2QWikqvGE9//wLEVYYwZd5sud8aLoLKog1Q75naZh2vlGVtg5Mq/NqpqGQvdIjJb3Bm+64AUQ==", "dev": true, "requires": { - "@oclif/config": "^1", "@oclif/errors": "^1.2.2", "@oclif/parser": "^3.8.3", - "@oclif/plugin-help": "^2", "debug": "^4.1.1", "semver": "^5.6.0" } @@ -47397,7 +47412,6 @@ "integrity": "sha512-5vwpq6kbvwkQwKqAoOU3L72GZ3Ta8RRrewKj9OJRolx28KLJJ8Dg9Rf7obRwt5jQA9bkYd8gqzMTrI7H3xLfaw==", "dev": true, "requires": { - "@oclif/config": "^1.15.1", "@oclif/errors": "^1.3.3", "@oclif/parser": "^3.8.3", "@oclif/plugin-help": "^3", @@ -48150,6 +48164,7 @@ "version": "0.2.1", "resolved": "https://registry.npmjs.org/@scena/dragscroll/-/dragscroll-0.2.1.tgz", "integrity": "sha512-8WrABWGvaALt0xMgesVZuA9Utt1q3zmGyqzWT22W1gfeKwVriqHTVldUQZevWIpgpnpIJtIW+/xFVsLtpmMsSA==", + "peer": true, "requires": { "@egjs/component": "^2.1.2" } @@ -48409,7 +48424,6 @@ "integrity": "sha512-7aTKD5+WULiMQ9zBqQ81sHSNBcayhFZWfH19P/ikR3UqBj1gsWjNH8l8vGVbaJiV+z53pmnnGfCYGq1HkL9oCA==", "dev": true, "requires": { - "@babel/core": "^7.12.1", "@babel/generator": "^7.12.1", "@babel/parser": "^7.12.3", "@babel/plugin-transform-react-jsx": "^7.12.1", @@ -52127,7 +52141,6 @@ "integrity": "sha512-3A73+cRq1eUPQ8g+hPNGgMUMCGmtQjwqHfoG1DwinAoJ/kr4WOXWWbGZo0xHJNBe/zdHGl0uHcDCp2knPglTdQ==", "peer": true, "requires": { - "@babel/core": "^7.0.0", "babel-preset-fbjs": "^3.3.0", "metro-babel-transformer": "0.58.0", "metro-react-native-babel-preset": "0.58.0", @@ -53282,7 +53295,6 @@ "integrity": "sha512-3A73+cRq1eUPQ8g+hPNGgMUMCGmtQjwqHfoG1DwinAoJ/kr4WOXWWbGZo0xHJNBe/zdHGl0uHcDCp2knPglTdQ==", "peer": true, "requires": { - "@babel/core": "^7.0.0", "babel-preset-fbjs": "^3.3.0", "metro-babel-transformer": "0.58.0", "metro-react-native-babel-preset": "0.58.0", @@ -55902,7 +55914,8 @@ "brcast": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/brcast/-/brcast-2.0.2.tgz", - "integrity": "sha512-Tfn5JSE7hrUlFcOoaLzVvkbgIemIorMIyoMr3TgvszWW7jFt2C9PdeMLtysYD9RU0MmU17b69+XJG1eRY2OBRg==" + "integrity": "sha512-Tfn5JSE7hrUlFcOoaLzVvkbgIemIorMIyoMr3TgvszWW7jFt2C9PdeMLtysYD9RU0MmU17b69+XJG1eRY2OBRg==", + "peer": true }, "brorand": { "version": "1.1.0", @@ -57911,15 +57924,15 @@ "version": "0.2.6", "resolved": "https://registry.npmjs.org/css-styled/-/css-styled-0.2.6.tgz", "integrity": "sha512-xIc8O6IXo9opmxaC5jvJuPVThvsHHot3P3n2V1w1jgKZC8uIcfasq2VXVV6mQVlNy0TrpyBTphtVWYQB+R4Sxg==", + "peer": true, "requires": { - "@daybrush/utils": "^1.0.0", "string-hash": "^1.1.3" }, "dependencies": { "@daybrush/utils": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@daybrush/utils/-/utils-1.4.0.tgz", - "integrity": "sha512-P+l76QjGFwu8IbrFoIHO1equrL02h6wYJLRZ37Snr6o3bPEwPS0mdJqyTZipHMhrWoR44UVtZTUi41GPCDc9PQ==" + "version": "https://registry.npmjs.org/@daybrush/utils/-/utils-1.4.0.tgz", + "integrity": "sha512-P+l76QjGFwu8IbrFoIHO1equrL02h6wYJLRZ37Snr6o3bPEwPS0mdJqyTZipHMhrWoR44UVtZTUi41GPCDc9PQ==", + "peer": true } } }, @@ -58632,7 +58645,8 @@ "direction": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/direction/-/direction-1.0.4.tgz", - "integrity": "sha512-GYqKi1aH7PJXxdhTeZBFrg8vUBeKXi+cNprXsC1kpJcbcVnV9wBsrOu1cQEdG0WeQwlfHiy3XvnKfIrJ2R0NzQ==" + "integrity": "sha512-GYqKi1aH7PJXxdhTeZBFrg8vUBeKXi+cNprXsC1kpJcbcVnV9wBsrOu1cQEdG0WeQwlfHiy3XvnKfIrJ2R0NzQ==", + "peer": true }, "doctrine": { "version": "3.0.0", @@ -59743,12 +59757,11 @@ } }, "eslint-plugin-markdown": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/eslint-plugin-markdown/-/eslint-plugin-markdown-1.0.2.tgz", - "integrity": "sha512-BfvXKsO0K+zvdarNc801jsE/NTLmig4oKhZ1U3aSUgTf2dB/US5+CrfGxMsCK2Ki1vS1R3HPok+uYpufFndhzw==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-markdown/-/eslint-plugin-markdown-2.0.0.tgz", + "integrity": "sha512-zt10JoexHeJFMTE5egDcetAJ34bn5k/92s0wAuRZfhDAyI0ryEj+O91JL2CbBExajie6BE5L63y47dN1Sbp6mQ==", "dev": true, "requires": { - "object-assign": "^4.0.1", "remark-parse": "^5.0.0", "unified": "^6.1.2" }, @@ -61753,7 +61766,8 @@ "framework-utils": { "version": "0.3.4", "resolved": "https://registry.npmjs.org/framework-utils/-/framework-utils-0.3.4.tgz", - "integrity": "sha512-Psekd+sXiHxtjLvK6aqi7vw6sQpShfBQSYlLkxCyhVzpmeTdxv1lCq8BGx++Mm5yw+MUn5IA4WKNO6LZFtOe2Q==" + "integrity": "sha512-Psekd+sXiHxtjLvK6aqi7vw6sQpShfBQSYlLkxCyhVzpmeTdxv1lCq8BGx++Mm5yw+MUn5IA4WKNO6LZFtOe2Q==", + "peer": true }, "fresh": { "version": "0.5.2", @@ -69149,7 +69163,6 @@ "integrity": "sha512-1O3wrnMq4NcPQ1asEcl9lRDn/t+F1Oef6S9WaYVIKEhg9m/EQRGVrrTVP+R6B5Eeaj3+zNKbzM8Dx/NWy1hUbQ==", "peer": true, "requires": { - "@babel/core": "^7.0.0", "babel-preset-fbjs": "^3.3.0", "metro-babel-transformer": "0.59.0", "metro-react-native-babel-preset": "0.59.0", @@ -73180,9 +73193,9 @@ "version": "0.2.4", "resolved": "https://registry.npmjs.org/react-css-styled/-/react-css-styled-0.2.4.tgz", "integrity": "sha512-mgO9iRw6qgKIIOHy5fUb7tkx2s3SRKlxQCRElibY6UqGOAc4C0X4Hk5xpPY3k7cksJ9oeiDniXiR7ToE7AY6uw==", + "peer": true, "requires": { - "css-styled": "^0.2.6", - "framework-utils": "^0.3.4" + "css-styled": "^0.2.6" } }, "react-dates": { @@ -73837,22 +73850,15 @@ "version": "1.7.0", "resolved": "https://registry.npmjs.org/react-moment-proptypes/-/react-moment-proptypes-1.7.0.tgz", "integrity": "sha512-ZbOn/P4u469WEGAw5hgkS/E+g1YZqdves2BjYsLluJobzUZCtManhjHiZKjniBVT7MSHM6D/iKtRVzlXVv3ikA==", - "requires": { - "moment": ">=1.6.0" - } + "requires": {} }, "react-moveable": { "version": "0.21.6", "resolved": "https://registry.npmjs.org/react-moveable/-/react-moveable-0.21.6.tgz", "integrity": "sha512-e+x7wI1MjpjtLhmxgoTAVwoV7mlexJxUN04TCdhmW6PMpDXy6gnUIyyGBDO6IFRgkWup7t5muUFT+KNKqeAtHw==", "requires": { - "@daybrush/drag": "^0.19.1", - "@daybrush/utils": "^0.10.5", "@egjs/agent": "^2.1.5", - "@egjs/children-differ": "^1.0.0", - "@scena/dragscroll": "^0.2.1", - "framework-utils": "^0.3.4", - "react-css-styled": "^0.2.0" + "@egjs/children-differ": "^1.0.0" } }, "react-outside-click-handler": { @@ -74042,6 +74048,7 @@ "version": "1.3.1", "resolved": "https://registry.npmjs.org/react-with-direction/-/react-with-direction-1.3.1.tgz", "integrity": "sha512-aGcM21ZzhqeXFvDCfPj0rVNYuaVXfTz5D3Rbn0QMz/unZe+CCiLHthrjQWO7s6qdfXORgYFtmS7OVsRgSk5LXQ==", + "peer": true, "requires": { "airbnb-prop-types": "^2.10.0", "brcast": "^2.0.2", @@ -74056,7 +74063,8 @@ "deepmerge": { "version": "1.5.2", "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-1.5.2.tgz", - "integrity": "sha512-95k0GDqvBjZavkuvzx/YqVLv/6YYa17fz6ILMSf7neqQITCPbnfEnQvEgMPNjH4kgobe7+WIL0yJEHku+H3qtQ==" + "integrity": "sha512-95k0GDqvBjZavkuvzx/YqVLv/6YYa17fz6ILMSf7neqQITCPbnfEnQvEgMPNjH4kgobe7+WIL0yJEHku+H3qtQ==", + "peer": true } } }, @@ -74067,8 +74075,7 @@ "requires": { "hoist-non-react-statics": "^3.2.1", "object.assign": "^4.1.0", - "prop-types": "^15.6.2", - "react-with-direction": "^1.3.0" + "prop-types": "^15.6.2" } }, "react-with-styles-interface-css": { @@ -76624,7 +76631,8 @@ "string-hash": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/string-hash/-/string-hash-1.1.3.tgz", - "integrity": "sha1-6Kr8CsGFW0Zmkp7X3RJ1311sgRs=" + "integrity": "sha1-6Kr8CsGFW0Zmkp7X3RJ1311sgRs=", + "peer": true }, "string-length": { "version": "4.0.1", diff --git a/package.json b/package.json index 90b56b0ccc29..bd2c64755782 100644 --- a/package.json +++ b/package.json @@ -142,7 +142,7 @@ "eslint-plugin-jest-dom": "^3.6.5", "eslint-plugin-jsdoc": "^30.7.13", "eslint-plugin-jsx-a11y": "^6.4.1", - "eslint-plugin-markdown": "^1.0.2", + "eslint-plugin-markdown": "^2.0.0", "eslint-plugin-node": "^11.1.0", "eslint-plugin-prettier": "^3.3.1", "eslint-plugin-react": "^7.22.0", @@ -214,9 +214,9 @@ "lint": "npm-run-all --parallel lint:*", "lint:css": "stylelint \"**/*.js\" --syntax \"css-in-js\"; stylelint \"**/*.css\" --syntax \"css\"", "lint:css:fix": "stylelint \"**/*.js\" --syntax \"css-in-js\" --fix; stylelint \"**/*.css\" --syntax \"css\" --fix", - "lint:js": "eslint --ext .js,.cjs,.md .", - "lint:js:fix": "npm run lint:js -- --fix", - "lint:js:report": "eslint --ext .js,.cjs,.md --output-file build/lint-js-report.json --format json .", + "lint:js": "eslint", + "lint:js:fix": "eslint --fix", + "lint:js:report": "eslint --output-file build/lint-js-report.json --format json .", "lint:php": "composer phpcs", "lint:php:fix": "composer phpcbf", "lint:phpstan": "composer phpstan", diff --git a/packages/karma-puppeteer-client/README.md b/packages/karma-puppeteer-client/README.md index 945af8d59d06..731d749327fd 100644 --- a/packages/karma-puppeteer-client/README.md +++ b/packages/karma-puppeteer-client/README.md @@ -6,7 +6,7 @@ events and nantive browser support. The APIs are exposed via `karmaPuppeteer` gl Notice, that all exposed Puppeeter APIs that accept an element selector, also accept the element reference in its place. Thus, both of these forms are valid: -```JavaScript +```js karmaPuppeteer.click('.element1') // Valid. Finds the element by the selector. karmaPuppeteer.click(element1) // Also valid. Passes the element by reference. ```