diff --git a/.changeset/eleven-wolves-grab.md b/.changeset/eleven-wolves-grab.md new file mode 100644 index 00000000..cb236945 --- /dev/null +++ b/.changeset/eleven-wolves-grab.md @@ -0,0 +1,5 @@ +--- +"10up-toolkit": patch +--- + +install @wordpress/eslint-plugin in toolkit by default diff --git a/.changeset/pre.json b/.changeset/pre.json new file mode 100644 index 00000000..f4a84ba7 --- /dev/null +++ b/.changeset/pre.json @@ -0,0 +1,18 @@ +{ + "mode": "pre", + "tag": "next", + "initialVersions": { + "@10up/babel-preset-default": "2.1.0", + "@10up/eslint-config": "3.1.1", + "@10up/eslint-plugin": "2.0.0", + "@10up/stylelint-config": "2.0.4", + "10up-toolkit": "5.2.1", + "tenup-theme": "1.1.5-next.7", + "@10up/component-accordion": "2.1.5", + "@10up/library-ts-test": "2.1.5" + }, + "changesets": [ + "eleven-wolves-grab", + "sixty-seas-chew" + ] +} diff --git a/.changeset/sixty-seas-chew.md b/.changeset/sixty-seas-chew.md new file mode 100644 index 00000000..9aa85c7f --- /dev/null +++ b/.changeset/sixty-seas-chew.md @@ -0,0 +1,6 @@ +--- +"@10up/stylelint-config": patch +--- + +Fixes validation for `--wp--some--property` for custom properties +Fixes usage of `currentcolor` vs `currentColor` diff --git a/package-lock.json b/package-lock.json index 5cc0185e..5ab6d68b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1475,7 +1475,6 @@ }, "node_modules/@babel/plugin-transform-runtime": { "version": "7.19.6", - "devOptional": true, "license": "MIT", "dependencies": { "@babel/helper-module-imports": "^7.18.6", @@ -1850,9 +1849,9 @@ } }, "node_modules/@changesets/apply-release-plan/node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", "dev": true, "bin": { "semver": "bin/semver" @@ -1873,9 +1872,9 @@ } }, "node_modules/@changesets/assemble-release-plan/node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", "dev": true, "bin": { "semver": "bin/semver" @@ -2034,9 +2033,10 @@ } }, "node_modules/@changesets/cli/node_modules/semver": { - "version": "5.7.1", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", "dev": true, - "license": "ISC", "bin": { "semver": "bin/semver" } @@ -2163,9 +2163,9 @@ } }, "node_modules/@changesets/get-dependents-graph/node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", "dev": true, "bin": { "semver": "bin/semver" @@ -4074,9 +4074,10 @@ } }, "node_modules/@linaria/webpack-loader/node_modules/semver": { - "version": "5.7.1", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", "devOptional": true, - "license": "ISC", "peer": true, "bin": { "semver": "bin/semver" @@ -5201,9 +5202,9 @@ } }, "node_modules/@typescript-eslint/eslint-plugin/node_modules/semver": { - "version": "7.5.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.0.tgz", - "integrity": "sha512-+XC0AD/R7Q2mPSRuy2Id0+CGTZ98+8f+KvwirxOKIEyid+XSx6HbC63p+O4IndTHuX5Z+JxQ0TghCkO5Cg/2HA==", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "dependencies": { "lru-cache": "^6.0.0" }, @@ -5321,9 +5322,9 @@ } }, "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": { - "version": "7.5.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", - "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "dependencies": { "lru-cache": "^6.0.0" }, @@ -5364,8 +5365,9 @@ "license": "MIT" }, "node_modules/@typescript-eslint/utils/node_modules/semver": { - "version": "7.3.8", - "license": "ISC", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "dependencies": { "lru-cache": "^6.0.0" }, @@ -5660,8 +5662,6 @@ "node_modules/@wordpress/babel-preset-default": { "version": "7.10.0", "license": "GPL-2.0-or-later", - "optional": true, - "peer": true, "dependencies": { "@babel/core": "^7.16.0", "@babel/plugin-transform-react-jsx": "^7.16.0", @@ -5683,8 +5683,6 @@ "node_modules/@wordpress/babel-preset-default/node_modules/@types/react": { "version": "18.0.27", "license": "MIT", - "optional": true, - "peer": true, "dependencies": { "@types/prop-types": "*", "@types/scheduler": "*", @@ -5694,8 +5692,6 @@ "node_modules/@wordpress/babel-preset-default/node_modules/@types/react-dom": { "version": "18.0.10", "license": "MIT", - "optional": true, - "peer": true, "dependencies": { "@types/react": "*" } @@ -5703,8 +5699,6 @@ "node_modules/@wordpress/babel-preset-default/node_modules/@wordpress/element": { "version": "5.3.0", "license": "GPL-2.0-or-later", - "optional": true, - "peer": true, "dependencies": { "@babel/runtime": "^7.16.0", "@types/react": "^18.0.21", @@ -5722,8 +5716,6 @@ "node_modules/@wordpress/babel-preset-default/node_modules/react": { "version": "18.2.0", "license": "MIT", - "optional": true, - "peer": true, "dependencies": { "loose-envify": "^1.1.0" }, @@ -5734,8 +5726,6 @@ "node_modules/@wordpress/babel-preset-default/node_modules/react-dom": { "version": "18.2.0", "license": "MIT", - "optional": true, - "peer": true, "dependencies": { "loose-envify": "^1.1.0", "scheduler": "^0.23.0" @@ -5747,8 +5737,6 @@ "node_modules/@wordpress/babel-preset-default/node_modules/scheduler": { "version": "0.23.0", "license": "MIT", - "optional": true, - "peer": true, "dependencies": { "loose-envify": "^1.1.0" } @@ -5756,8 +5744,6 @@ "node_modules/@wordpress/browserslist-config": { "version": "5.9.0", "license": "GPL-2.0-or-later", - "optional": true, - "peer": true, "engines": { "node": ">=14" } @@ -5855,8 +5841,6 @@ "node_modules/@wordpress/eslint-plugin": { "version": "13.10.0", "license": "GPL-2.0-or-later", - "optional": true, - "peer": true, "dependencies": { "@babel/eslint-parser": "^7.16.0", "@typescript-eslint/eslint-plugin": "^5.3.0", @@ -5897,8 +5881,6 @@ "node_modules/@wordpress/eslint-plugin/node_modules/eslint-plugin-prettier": { "version": "3.4.1", "license": "MIT", - "optional": true, - "peer": true, "dependencies": { "prettier-linter-helpers": "^1.0.0" }, @@ -5918,8 +5900,6 @@ "node_modules/@wordpress/eslint-plugin/node_modules/globals": { "version": "13.13.0", "license": "MIT", - "optional": true, - "peer": true, "dependencies": { "type-fest": "^0.20.2" }, @@ -5933,8 +5913,6 @@ "node_modules/@wordpress/eslint-plugin/node_modules/type-fest": { "version": "0.20.2", "license": "(MIT OR CC0-1.0)", - "optional": true, - "peer": true, "engines": { "node": ">=10" }, @@ -5972,8 +5950,6 @@ "node_modules/@wordpress/prettier-config": { "version": "2.9.0", "license": "GPL-2.0-or-later", - "optional": true, - "peer": true, "engines": { "node": ">=14" }, @@ -6011,8 +5987,6 @@ "node_modules/@wordpress/warning": { "version": "2.26.0", "license": "GPL-2.0-or-later", - "optional": true, - "peer": true, "engines": { "node": ">=12" } @@ -8301,9 +8275,9 @@ } }, "node_modules/css-loader/node_modules/semver": { - "version": "7.5.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.0.tgz", - "integrity": "sha512-+XC0AD/R7Q2mPSRuy2Id0+CGTZ98+8f+KvwirxOKIEyid+XSx6HbC63p+O4IndTHuX5Z+JxQ0TghCkO5Cg/2HA==", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "dependencies": { "lru-cache": "^6.0.0" }, @@ -9424,7 +9398,6 @@ "node_modules/eslint-config-prettier": { "version": "8.6.0", "license": "MIT", - "peer": true, "bin": { "eslint-config-prettier": "bin/cli.js" }, @@ -9597,8 +9570,9 @@ } }, "node_modules/eslint-plugin-jsdoc/node_modules/semver": { - "version": "7.3.8", - "license": "ISC", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "dependencies": { "lru-cache": "^6.0.0" }, @@ -9728,7 +9702,6 @@ "node_modules/eslint-plugin-react-hooks": { "version": "4.6.0", "license": "MIT", - "peer": true, "engines": { "node": ">=10" }, @@ -10445,8 +10418,7 @@ }, "node_modules/fast-diff": { "version": "1.2.0", - "license": "Apache-2.0", - "peer": true + "license": "Apache-2.0" }, "node_modules/fast-glob": { "version": "3.2.12", @@ -12874,8 +12846,9 @@ } }, "node_modules/jest-snapshot/node_modules/semver": { - "version": "7.3.5", - "license": "ISC", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "dependencies": { "lru-cache": "^6.0.0" }, @@ -13509,8 +13482,9 @@ } }, "node_modules/meow/node_modules/semver": { - "version": "7.3.5", - "license": "ISC", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "peer": true, "dependencies": { "lru-cache": "^6.0.0" @@ -13930,8 +13904,9 @@ } }, "node_modules/node-abi/node_modules/semver": { - "version": "7.3.7", - "license": "ISC", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "dependencies": { "lru-cache": "^6.0.0" }, @@ -14046,8 +14021,9 @@ } }, "node_modules/normalize-package-data/node_modules/semver": { - "version": "5.7.1", - "license": "ISC", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", "bin": { "semver": "bin/semver" } @@ -15405,9 +15381,9 @@ } }, "node_modules/postcss-loader/node_modules/semver": { - "version": "7.5.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.0.tgz", - "integrity": "sha512-+XC0AD/R7Q2mPSRuy2Id0+CGTZ98+8f+KvwirxOKIEyid+XSx6HbC63p+O4IndTHuX5Z+JxQ0TghCkO5Cg/2HA==", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "dependencies": { "lru-cache": "^6.0.0" }, @@ -16124,7 +16100,6 @@ "node_modules/prettier-linter-helpers": { "version": "1.0.0", "license": "MIT", - "peer": true, "dependencies": { "fast-diff": "^1.1.2" }, @@ -16327,6 +16302,11 @@ "node": ">=0.4.x" } }, + "node_modules/querystringify": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", + "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==" + }, "node_modules/queue-microtask": { "version": "1.2.3", "funding": [ @@ -17079,8 +17059,9 @@ } }, "node_modules/semver": { - "version": "6.3.0", - "license": "ISC", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "bin": { "semver": "bin/semver.js" } @@ -17299,9 +17280,9 @@ } }, "node_modules/sharp/node_modules/semver": { - "version": "7.5.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.0.tgz", - "integrity": "sha512-+XC0AD/R7Q2mPSRuy2Id0+CGTZ98+8f+KvwirxOKIEyid+XSx6HbC63p+O4IndTHuX5Z+JxQ0TghCkO5Cg/2HA==", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "dependencies": { "lru-cache": "^6.0.0" }, @@ -19162,17 +19143,27 @@ } }, "node_modules/tough-cookie": { - "version": "4.0.0", - "license": "BSD-3-Clause", + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.3.tgz", + "integrity": "sha512-aX/y5pVRkfRnfmuX+OdbSdXvPe6ieKX/G2s7e98f4poJHnqH3281gDPm/metm6E/WRamfx7WC4HUqkWHfQHprw==", "dependencies": { "psl": "^1.1.33", "punycode": "^2.1.1", - "universalify": "^0.1.2" + "universalify": "^0.2.0", + "url-parse": "^1.5.3" }, "engines": { "node": ">=6" } }, + "node_modules/tough-cookie/node_modules/universalify": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz", + "integrity": "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==", + "engines": { + "node": ">= 4.0.0" + } + }, "node_modules/tr46": { "version": "2.1.0", "license": "MIT", @@ -19534,6 +19525,7 @@ }, "node_modules/universalify": { "version": "0.1.2", + "dev": true, "license": "MIT", "engines": { "node": ">= 4.0.0" @@ -19690,6 +19682,15 @@ } } }, + "node_modules/url-parse": { + "version": "1.5.10", + "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz", + "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==", + "dependencies": { + "querystringify": "^2.1.1", + "requires-port": "^1.0.0" + } + }, "node_modules/url/node_modules/punycode": { "version": "1.3.2", "devOptional": true, @@ -20529,8 +20530,9 @@ } }, "node_modules/word-wrap": { - "version": "1.2.3", - "license": "MIT", + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.4.tgz", + "integrity": "sha512-2V81OA4ugVo5pRo46hAoD2ivUJx8jXmWXfUkY4KFNw0hEptvN0QfH3K4nHiwzGeKl5rFKedV48QVoqYavy4YpA==", "engines": { "node": ">=0.10.0" } @@ -20713,7 +20715,7 @@ "core-js": "^3.30.2" }, "devDependencies": { - "@10up/eslint-config": "^3.1.0", + "@10up/eslint-config": "^3.1.1-next.0", "@wordpress/element": "^4.20.0", "babel-jest": "^27.5.1", "eslint": "^8.40.0", @@ -20722,7 +20724,7 @@ }, "packages/eslint-config": { "name": "@10up/eslint-config", - "version": "3.1.0", + "version": "3.1.1", "license": "GPL-2.0-or-later", "dependencies": { "@10up/babel-preset-default": "^2.1.0" @@ -20773,7 +20775,7 @@ }, "devDependencies": { "@10up/babel-preset-default": "^2.0.4", - "@10up/eslint-config": "^3.0.0" + "@10up/eslint-config": "^3.1.1-next.0" }, "engines": { "node": "^16 || >=18" @@ -20808,7 +20810,7 @@ }, "packages/stylelint-config": { "name": "@10up/stylelint-config", - "version": "2.0.4", + "version": "2.0.5-next.0", "license": "GPL-2.0-or-later", "dependencies": { "@wordpress/stylelint-config": "^20.0.3", @@ -20816,7 +20818,7 @@ "stylelint-order": "^5.0.0" }, "devDependencies": { - "@10up/eslint-config": "^3.0.0" + "@10up/eslint-config": "^3.1.1-next.0" }, "engines": { "node": "^12.20.0 || ^14.13.1 || >=16.0.0" @@ -20827,7 +20829,7 @@ }, "packages/toolkit": { "name": "10up-toolkit", - "version": "5.2.1-next.0", + "version": "5.2.2-next.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/core": "^7.21.8", @@ -20837,6 +20839,7 @@ "@typescript-eslint/eslint-plugin": "^5.59.6", "@typescript-eslint/parser": "^5.59.6", "@wordpress/dependency-extraction-webpack-plugin": "^4.16.0", + "@wordpress/eslint-plugin": "^13.10.0", "@wordpress/jest-console": "^6.11.0", "babel-jest": "^27.5.1", "babel-loader": "^9.1.2", @@ -20884,8 +20887,8 @@ }, "devDependencies": { "@10up/babel-preset-default": "^2.1.0", - "@10up/eslint-config": "^3.1.0", - "@10up/stylelint-config": "^2.0.4" + "@10up/eslint-config": "^3.1.1", + "@10up/stylelint-config": "^2.0.5-next.0" }, "engines": { "node": ">=14", @@ -20893,8 +20896,8 @@ }, "peerDependencies": { "@10up/babel-preset-default": "^2.0.4", - "@10up/eslint-config": "^3.0.0", - "@10up/stylelint-config": ">=2.0.4", + "@10up/eslint-config": "^3.1.1", + "@10up/stylelint-config": ">=2.0.5-next.0", "@linaria/babel-preset": "^4.3.3", "@linaria/webpack-loader": "^4.1.11" }, @@ -20936,7 +20939,7 @@ "@linaria/babel-preset": "^4.3.3", "@linaria/webpack-loader": "^4.1.11", "@wordpress/env": "^5.0.0", - "10up-toolkit": "^5.2.1-next.0" + "10up-toolkit": "^5.2.2-next.0" }, "engines": { "node": ">=12.0.0" @@ -20953,7 +20956,7 @@ "@testing-library/dom": "^7.29.4", "@testing-library/jest-dom": "^5.11.9", "@testing-library/user-event": "^12.6.3", - "10up-toolkit": "^5.2.1-next.0", + "10up-toolkit": "^5.2.2-next.0", "jest-axe": "^4.1.0" } }, @@ -20965,7 +20968,7 @@ "xss": "^1.0.11" }, "devDependencies": { - "10up-toolkit": "^5.2.1-next.0" + "10up-toolkit": "^5.2.2-next.0" } }, "projects/library/node_modules/@testing-library/dom": { diff --git a/packages/stylelint-config/CHANGELOG.md b/packages/stylelint-config/CHANGELOG.md index ba372ac3..52f087aa 100644 --- a/packages/stylelint-config/CHANGELOG.md +++ b/packages/stylelint-config/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.0.5-next.0 + +### Patch Changes + +- b172081: Fixes validation for `--wp--some--property` for custom properties + Fixes usage of `currentcolor` vs `currentColor` + ## 2.0.4 ### Patch Changes diff --git a/packages/stylelint-config/index.js b/packages/stylelint-config/index.js index e924ac4c..c87ebf0a 100644 --- a/packages/stylelint-config/index.js +++ b/packages/stylelint-config/index.js @@ -4,7 +4,7 @@ module.exports = { rules: { 'scale-unlimited/declaration-strict-value': [ '/color/', - { ignoreValues: ['currentColor', 'inherit', 'initial', 'transparent', 'unset'] }, + { ignoreValues: ['currentcolor', 'inherit', 'initial', 'transparent', 'unset'] }, ], 'order/properties-alphabetical-order': true, 'function-url-quotes': 'always', @@ -13,5 +13,11 @@ module.exports = { 'selector-nested-pattern': ['^&'], 'no-descending-specificity': null, 'at-rule-no-unknown': [true, { ignoreAtRules: ['mixin', 'define-mixin'] }], + 'custom-property-pattern': [ + '^([a-z][a-z0-9]*)(-[a-z0-9]+)*$|^wp--([a-z][a-z0-9]*)(--[a-z0-9]+)*$', + { + message: 'Expected custom property name to be kebab-case or wp--kebab--case', + }, + ], }, }; diff --git a/packages/stylelint-config/package.json b/packages/stylelint-config/package.json index d91c64dd..824e2caa 100644 --- a/packages/stylelint-config/package.json +++ b/packages/stylelint-config/package.json @@ -1,6 +1,6 @@ { "name": "@10up/stylelint-config", - "version": "2.0.4", + "version": "2.0.5-next.0", "description": "10up stylelint config for WordPress projects", "main": "index.js", "homepage": "https://github.com/10up/10up-toolkit/tree/develop/packages/stylelint-config#readme", diff --git a/packages/toolkit/CHANGELOG.md b/packages/toolkit/CHANGELOG.md index f64b9665..9272df9b 100644 --- a/packages/toolkit/CHANGELOG.md +++ b/packages/toolkit/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 5.2.2-next.0 + +### Patch Changes + +- d3ea57e: install @wordpress/eslint-plugin in toolkit by default +- Updated dependencies [b172081] + - @10up/stylelint-config@2.0.5-next.0 + ## 5.2.1 ### Patch Changes diff --git a/packages/toolkit/package.json b/packages/toolkit/package.json index 9b43e198..0115b210 100644 --- a/packages/toolkit/package.json +++ b/packages/toolkit/package.json @@ -13,7 +13,7 @@ "url": "git+https://github.com/10up/10up-toolkit.git", "directory": "packages/toolkit" }, - "version": "5.2.1", + "version": "5.2.2-next.0", "bin": { "10up-toolkit": "bin/10up-toolkit.js" }, @@ -26,6 +26,7 @@ "@typescript-eslint/parser": "^5.59.6", "@wordpress/dependency-extraction-webpack-plugin": "^4.16.0", "@wordpress/jest-console": "^6.11.0", + "@wordpress/eslint-plugin": "^13.10.0", "babel-jest": "^27.5.1", "babel-loader": "^9.1.2", "camelcase": "^6.3.0", @@ -70,12 +71,12 @@ "devDependencies": { "@10up/babel-preset-default": "^2.1.0", "@10up/eslint-config": "^3.1.1", - "@10up/stylelint-config": "^2.0.4" + "@10up/stylelint-config": "^2.0.5-next.0" }, "peerDependencies": { "@10up/babel-preset-default": "^2.0.4", - "@10up/eslint-config": "^3.1.1-next.0", - "@10up/stylelint-config": ">=2.0.4", + "@10up/eslint-config": "^3.1.1", + "@10up/stylelint-config": ">=2.0.5-next.0", "@linaria/webpack-loader": "^4.1.11", "@linaria/babel-preset": "^4.3.3" }, diff --git a/projects/10up-theme/package.json b/projects/10up-theme/package.json index fdda43f6..75bb69ad 100644 --- a/projects/10up-theme/package.json +++ b/projects/10up-theme/package.json @@ -20,7 +20,7 @@ "@linaria/babel-preset": "^4.3.3", "@linaria/webpack-loader": "^4.1.11", "@wordpress/env": "^5.0.0", - "10up-toolkit": "^5.2.1" + "10up-toolkit": "^5.2.2-next.0" }, "dependencies": { "@10up/block-components": "1.7.0", diff --git a/projects/library-ts/package.json b/projects/library-ts/package.json index ac2323c9..7ca3f69e 100644 --- a/projects/library-ts/package.json +++ b/projects/library-ts/package.json @@ -39,7 +39,7 @@ }, "homepage": "https://github.com/10up/component-accordion#readme", "devDependencies": { - "10up-toolkit": "^5.2.1" + "10up-toolkit": "^5.2.2-next.0" }, "dependencies": { "xss": "^1.0.11" diff --git a/projects/library/package.json b/projects/library/package.json index 9b3faabf..645b3ed5 100644 --- a/projects/library/package.json +++ b/projects/library/package.json @@ -26,7 +26,7 @@ }, "homepage": "https://github.com/10up/component-accordion#readme", "devDependencies": { - "10up-toolkit": "^5.2.1", + "10up-toolkit": "^5.2.2-next.0", "@testing-library/dom": "^7.29.4", "@testing-library/jest-dom": "^5.11.9", "@testing-library/user-event": "^12.6.3",