diff --git a/package-lock.json b/package-lock.json index 0bce1cd..d688824 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,12 +15,13 @@ "@10up/cypress-wp-utils": "^0.2.0", "@wordpress/dependency-extraction-webpack-plugin": "^5.1.0", "@wordpress/env": "^9.2.0", + "@wordpress/eslint-plugin": "^17.5.0", "10up-toolkit": "^6.1.0", "cypress": "^13.0.0", "cypress-mochawesome-reporter": "^3.6.0", "mochawesome-json-to-md": "^0.7.2", "node-wp-i18n": "^1.2.7", - "prettier": "^2.8.8" + "prettier": "^3.3.2" } }, "node_modules/@10up/babel-preset-default": { @@ -5545,149 +5546,7 @@ "node": ">=8" } }, - "node_modules/@wordpress/html-entities": { - "version": "3.50.0", - "resolved": "https://registry.npmjs.org/@wordpress/html-entities/-/html-entities-3.50.0.tgz", - "integrity": "sha512-DBRgShv6FLtDpapoTgmEx//6uHeq+mk5zKhAWAAqu6+/6LqOm/TCoUTxb0E2xtHh4oRBgU5nYC92pObRaczFdQ==", - "dependencies": { - "@babel/runtime": "^7.16.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@wordpress/jest-console": { - "version": "7.29.0", - "resolved": "https://registry.npmjs.org/@wordpress/jest-console/-/jest-console-7.29.0.tgz", - "integrity": "sha512-/9PZJhyszdRX4mka7t1WzoooM+Q/DwC4jkNVtJxqci5lbL3Lrhy1cCJGCgMr1n/9w+zs7eLmExFBvV4v44iyNw==", - "dev": true, - "dependencies": { - "@babel/runtime": "^7.16.0", - "jest-matcher-utils": "^29.6.2" - }, - "engines": { - "node": ">=14" - }, - "peerDependencies": { - "jest": ">=29" - } - }, - "node_modules/@wordpress/warning": { - "version": "2.58.0", - "resolved": "https://registry.npmjs.org/@wordpress/warning/-/warning-2.58.0.tgz", - "integrity": "sha512-9bZlORhyMY2nbWozeyC5kqJsFzEPP4DCLhGmjtbv+YWGHttUrxUZEfrKdqO+rUODA8rP5zeIly1nCQOUnkw4Lg==", - "dev": true, - "engines": { - "node": ">=12" - } - }, - "node_modules/@xtuc/ieee754": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", - "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", - "dev": true - }, - "node_modules/@xtuc/long": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", - "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", - "dev": true - }, - "node_modules/10up-toolkit": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/10up-toolkit/-/10up-toolkit-6.1.0.tgz", - "integrity": "sha512-OhNshS5KQNLI7pXxBb9Uw6nzs+fiTSzLlokKdZFygL9IvDCJ02sWBpQ/9REiAGQKW14jCAAMGioFmk+VDRqUEA==", - "dev": true, - "dependencies": { - "@babel/eslint-parser": "^7.23.3", - "@csstools/postcss-global-data": "^2.1.1", - "@pmmmwh/react-refresh-webpack-plugin": "^0.5.11", - "@svgr/webpack": "^8.1.0", - "@typescript-eslint/eslint-plugin": "^6.17.0", - "@typescript-eslint/parser": "^6.17.0", - "@wordpress/dependency-extraction-webpack-plugin": "^5.4.0", - "@wordpress/eslint-plugin": "^17.5.0", - "@wordpress/jest-console": "^7.19.0", - "babel-jest": "^29.7.0", - "babel-loader": "^9.1.3", - "camelcase": "^6.3.0", - "copy-webpack-plugin": "^11.0.0", - "core-js": "^3.35.0", - "core-js-pure": "^3.35.0", - "cross-spawn": "^7.0.3", - "css-loader": "^6.8.1", - "cssnano": "^6.0.3", - "error-stack-parser": "^2.1.4", - "eslint-webpack-plugin": "^4.0.1", - "fast-glob": "^3.3.2", - "html-webpack-plugin": "^5.6.0", - "ignore-emit-webpack-plugin": "^2.0.6", - "image-minimizer-webpack-plugin": "^3.8.3", - "jest": "^29.7.0", - "mini-css-extract-plugin": "^2.7.6", - "minimist": "^1.2.8", - "postcss": "^8.4.31", - "postcss-editor-styles-wrapper": "^1.0.1", - "postcss-import": "^15.1.0", - "postcss-loader": "^7.3.3", - "postcss-mixins": "^9.0.4", - "postcss-preset-env": "^9.3.0", - "react-refresh": "^0.14.0", - "read-pkg": "^5.2.0", - "read-pkg-up": "^7.0.1", - "resolve-bin": "^1.0.1", - "sass": "^1.69.7", - "sass-loader": "^13.3.3", - "sharp": "0.32.6", - "stylelint-config-standard-scss": "^11.0.0", - "stylelint-webpack-plugin": "^4.1.1", - "svgo": "^3.2.0", - "url-loader": "^4.1.1", - "webpack": "^5.89.0", - "webpack-bundle-analyzer": "^4.10.1", - "webpack-dev-server": "^4.15.1", - "webpack-sources": "^3.2.3", - "webpackbar": "^6.0.0" - }, - "bin": { - "10up-toolkit": "bin/10up-toolkit.js" - }, - "engines": { - "node": ">=16", - "npm": ">=6.9" - }, - "peerDependencies": { - "@10up/babel-preset-default": "^2.1.1", - "@10up/eslint-config": "^4.0.0", - "@10up/stylelint-config": "^3.0.0", - "@linaria/babel-preset": ">=4.3.3", - "@linaria/webpack-loader": ">=4.1.11", - "typescript": ">=5.0.0" - }, - "peerDependenciesMeta": { - "@linaria/babel-preset": { - "optional": true - }, - "@linaria/webpack-loader": { - "optional": true - } - } - }, - "node_modules/10up-toolkit/node_modules/@es-joy/jsdoccomment": { - "version": "0.41.0", - "resolved": "https://registry.npmjs.org/@es-joy/jsdoccomment/-/jsdoccomment-0.41.0.tgz", - "integrity": "sha512-aKUhyn1QI5Ksbqcr3fFJj16p99QdjUxXAEuFst1Z47DRyoiMwivIH9MV/ARcJOCXVjPfjITciej8ZD2O/6qUmw==", - "dev": true, - "dependencies": { - "comment-parser": "1.4.1", - "esquery": "^1.5.0", - "jsdoc-type-pratt-parser": "~4.0.0" - }, - "engines": { - "node": ">=16" - } - }, - "node_modules/10up-toolkit/node_modules/@wordpress/eslint-plugin": { + "node_modules/@wordpress/eslint-plugin": { "version": "17.13.0", "resolved": "https://registry.npmjs.org/@wordpress/eslint-plugin/-/eslint-plugin-17.13.0.tgz", "integrity": "sha512-QnG5HmOd+XsweKOvrqbOugm9rINUjcsh1jo2SN4cbbTWZJ6nPmcfLS0YJdrKkgOQUnKDPQgBPVEyI8tp19OtBw==", @@ -5730,19 +5589,21 @@ } } }, - "node_modules/10up-toolkit/node_modules/@wordpress/prettier-config": { - "version": "3.15.0", - "resolved": "https://registry.npmjs.org/@wordpress/prettier-config/-/prettier-config-3.15.0.tgz", - "integrity": "sha512-exC2rkEioTt//AnzPRyaaFv8FNYIvamPDytNol5bKQ6Qh65QSdZZE9V+GtRCrIPL7/Bq6xba03XuRVxl9TjtJg==", + "node_modules/@wordpress/eslint-plugin/node_modules/@es-joy/jsdoccomment": { + "version": "0.41.0", + "resolved": "https://registry.npmjs.org/@es-joy/jsdoccomment/-/jsdoccomment-0.41.0.tgz", + "integrity": "sha512-aKUhyn1QI5Ksbqcr3fFJj16p99QdjUxXAEuFst1Z47DRyoiMwivIH9MV/ARcJOCXVjPfjITciej8ZD2O/6qUmw==", "dev": true, - "engines": { - "node": ">=14" + "dependencies": { + "comment-parser": "1.4.1", + "esquery": "^1.5.0", + "jsdoc-type-pratt-parser": "~4.0.0" }, - "peerDependencies": { - "prettier": ">=3" + "engines": { + "node": ">=16" } }, - "node_modules/10up-toolkit/node_modules/cosmiconfig": { + "node_modules/@wordpress/eslint-plugin/node_modules/cosmiconfig": { "version": "7.1.0", "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.1.0.tgz", "integrity": "sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==", @@ -5758,7 +5619,7 @@ "node": ">=10" } }, - "node_modules/10up-toolkit/node_modules/escape-string-regexp": { + "node_modules/@wordpress/eslint-plugin/node_modules/escape-string-regexp": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", @@ -5770,7 +5631,7 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/10up-toolkit/node_modules/eslint-config-prettier": { + "node_modules/@wordpress/eslint-plugin/node_modules/eslint-config-prettier": { "version": "8.10.0", "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.10.0.tgz", "integrity": "sha512-SM8AMJdeQqRYT9O9zguiruQZaN7+z+E4eAP9oiLNGKMtomwaB1E9dcgUD6ZAn/eQAb52USbvezbiljfZUhbJcg==", @@ -5782,7 +5643,7 @@ "eslint": ">=7.0.0" } }, - "node_modules/10up-toolkit/node_modules/eslint-plugin-jsdoc": { + "node_modules/@wordpress/eslint-plugin/node_modules/eslint-plugin-jsdoc": { "version": "46.10.1", "resolved": "https://registry.npmjs.org/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-46.10.1.tgz", "integrity": "sha512-x8wxIpv00Y50NyweDUpa+58ffgSAI5sqe+zcZh33xphD0AVh+1kqr1ombaTRb7Fhpove1zfUuujlX9DWWBP5ag==", @@ -5805,7 +5666,7 @@ "eslint": "^7.0.0 || ^8.0.0 || ^9.0.0" } }, - "node_modules/10up-toolkit/node_modules/globals": { + "node_modules/@wordpress/eslint-plugin/node_modules/globals": { "version": "13.24.0", "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", @@ -5820,23 +5681,7 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/10up-toolkit/node_modules/prettier": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.0.tgz", - "integrity": "sha512-J9odKxERhCQ10OC2yb93583f6UnYutOeiV5i0zEDS7UGTdUt0u+y8erxl3lBKvwo/JHyyoEdXjwp4dke9oyZ/g==", - "dev": true, - "peer": true, - "bin": { - "prettier": "bin/prettier.cjs" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/prettier/prettier?sponsor=1" - } - }, - "node_modules/10up-toolkit/node_modules/semver": { + "node_modules/@wordpress/eslint-plugin/node_modules/semver": { "version": "7.6.2", "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", @@ -5848,7 +5693,7 @@ "node": ">=10" } }, - "node_modules/10up-toolkit/node_modules/spdx-expression-parse": { + "node_modules/@wordpress/eslint-plugin/node_modules/spdx-expression-parse": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-4.0.0.tgz", "integrity": "sha512-Clya5JIij/7C6bRR22+tnGXbc4VKlibKSVj2iHvVeX5iMW7s1SIQlqu699JkODJJIhh/pUu8L0/VLh8xflD+LQ==", @@ -5858,7 +5703,7 @@ "spdx-license-ids": "^3.0.0" } }, - "node_modules/10up-toolkit/node_modules/type-fest": { + "node_modules/@wordpress/eslint-plugin/node_modules/type-fest": { "version": "0.20.2", "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", @@ -5870,7 +5715,7 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/10up-toolkit/node_modules/yaml": { + "node_modules/@wordpress/eslint-plugin/node_modules/yaml": { "version": "1.10.2", "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", @@ -5879,6 +5724,146 @@ "node": ">= 6" } }, + "node_modules/@wordpress/html-entities": { + "version": "3.50.0", + "resolved": "https://registry.npmjs.org/@wordpress/html-entities/-/html-entities-3.50.0.tgz", + "integrity": "sha512-DBRgShv6FLtDpapoTgmEx//6uHeq+mk5zKhAWAAqu6+/6LqOm/TCoUTxb0E2xtHh4oRBgU5nYC92pObRaczFdQ==", + "dependencies": { + "@babel/runtime": "^7.16.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@wordpress/jest-console": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@wordpress/jest-console/-/jest-console-7.29.0.tgz", + "integrity": "sha512-/9PZJhyszdRX4mka7t1WzoooM+Q/DwC4jkNVtJxqci5lbL3Lrhy1cCJGCgMr1n/9w+zs7eLmExFBvV4v44iyNw==", + "dev": true, + "dependencies": { + "@babel/runtime": "^7.16.0", + "jest-matcher-utils": "^29.6.2" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "jest": ">=29" + } + }, + "node_modules/@wordpress/prettier-config": { + "version": "3.15.0", + "resolved": "https://registry.npmjs.org/@wordpress/prettier-config/-/prettier-config-3.15.0.tgz", + "integrity": "sha512-exC2rkEioTt//AnzPRyaaFv8FNYIvamPDytNol5bKQ6Qh65QSdZZE9V+GtRCrIPL7/Bq6xba03XuRVxl9TjtJg==", + "dev": true, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "prettier": ">=3" + } + }, + "node_modules/@wordpress/warning": { + "version": "2.58.0", + "resolved": "https://registry.npmjs.org/@wordpress/warning/-/warning-2.58.0.tgz", + "integrity": "sha512-9bZlORhyMY2nbWozeyC5kqJsFzEPP4DCLhGmjtbv+YWGHttUrxUZEfrKdqO+rUODA8rP5zeIly1nCQOUnkw4Lg==", + "dev": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/@xtuc/ieee754": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", + "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", + "dev": true + }, + "node_modules/@xtuc/long": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", + "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", + "dev": true + }, + "node_modules/10up-toolkit": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/10up-toolkit/-/10up-toolkit-6.1.0.tgz", + "integrity": "sha512-OhNshS5KQNLI7pXxBb9Uw6nzs+fiTSzLlokKdZFygL9IvDCJ02sWBpQ/9REiAGQKW14jCAAMGioFmk+VDRqUEA==", + "dev": true, + "dependencies": { + "@babel/eslint-parser": "^7.23.3", + "@csstools/postcss-global-data": "^2.1.1", + "@pmmmwh/react-refresh-webpack-plugin": "^0.5.11", + "@svgr/webpack": "^8.1.0", + "@typescript-eslint/eslint-plugin": "^6.17.0", + "@typescript-eslint/parser": "^6.17.0", + "@wordpress/dependency-extraction-webpack-plugin": "^5.4.0", + "@wordpress/eslint-plugin": "^17.5.0", + "@wordpress/jest-console": "^7.19.0", + "babel-jest": "^29.7.0", + "babel-loader": "^9.1.3", + "camelcase": "^6.3.0", + "copy-webpack-plugin": "^11.0.0", + "core-js": "^3.35.0", + "core-js-pure": "^3.35.0", + "cross-spawn": "^7.0.3", + "css-loader": "^6.8.1", + "cssnano": "^6.0.3", + "error-stack-parser": "^2.1.4", + "eslint-webpack-plugin": "^4.0.1", + "fast-glob": "^3.3.2", + "html-webpack-plugin": "^5.6.0", + "ignore-emit-webpack-plugin": "^2.0.6", + "image-minimizer-webpack-plugin": "^3.8.3", + "jest": "^29.7.0", + "mini-css-extract-plugin": "^2.7.6", + "minimist": "^1.2.8", + "postcss": "^8.4.31", + "postcss-editor-styles-wrapper": "^1.0.1", + "postcss-import": "^15.1.0", + "postcss-loader": "^7.3.3", + "postcss-mixins": "^9.0.4", + "postcss-preset-env": "^9.3.0", + "react-refresh": "^0.14.0", + "read-pkg": "^5.2.0", + "read-pkg-up": "^7.0.1", + "resolve-bin": "^1.0.1", + "sass": "^1.69.7", + "sass-loader": "^13.3.3", + "sharp": "0.32.6", + "stylelint-config-standard-scss": "^11.0.0", + "stylelint-webpack-plugin": "^4.1.1", + "svgo": "^3.2.0", + "url-loader": "^4.1.1", + "webpack": "^5.89.0", + "webpack-bundle-analyzer": "^4.10.1", + "webpack-dev-server": "^4.15.1", + "webpack-sources": "^3.2.3", + "webpackbar": "^6.0.0" + }, + "bin": { + "10up-toolkit": "bin/10up-toolkit.js" + }, + "engines": { + "node": ">=16", + "npm": ">=6.9" + }, + "peerDependencies": { + "@10up/babel-preset-default": "^2.1.1", + "@10up/eslint-config": "^4.0.0", + "@10up/stylelint-config": "^3.0.0", + "@linaria/babel-preset": ">=4.3.3", + "@linaria/webpack-loader": ">=4.1.11", + "typescript": ">=5.0.0" + }, + "peerDependenciesMeta": { + "@linaria/babel-preset": { + "optional": true + }, + "@linaria/webpack-loader": { + "optional": true + } + } + }, "node_modules/accepts": { "version": "1.3.8", "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", @@ -18699,15 +18684,15 @@ } }, "node_modules/prettier": { - "version": "2.8.8", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", - "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.2.tgz", + "integrity": "sha512-rAVeHYMcv8ATV5d508CFdn+8/pHPpXeIid1DdrPwXnaAdH7cqjVbpJaT5eq4yRAFU/lsbwYwSF/n5iNrdJHPQA==", "dev": true, "bin": { - "prettier": "bin-prettier.js" + "prettier": "bin/prettier.cjs" }, "engines": { - "node": ">=10.13.0" + "node": ">=14" }, "funding": { "url": "https://github.com/prettier/prettier?sponsor=1" diff --git a/package.json b/package.json index dedc670..b1af789 100644 --- a/package.json +++ b/package.json @@ -8,12 +8,13 @@ "@10up/cypress-wp-utils": "^0.2.0", "@wordpress/dependency-extraction-webpack-plugin": "^5.1.0", "@wordpress/env": "^9.2.0", + "@wordpress/eslint-plugin": "^17.5.0", "10up-toolkit": "^6.1.0", "cypress": "^13.0.0", "cypress-mochawesome-reporter": "^3.6.0", "mochawesome-json-to-md": "^0.7.2", "node-wp-i18n": "^1.2.7", - "prettier": "^2.8.8" + "prettier": "^3.3.2" }, "scripts": { "cypress:open": "cypress open --config-file tests/cypress/config.config.js",