diff --git a/eslint.config.mjs b/eslint.config.mjs index 9b2e7081..6de23552 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -1,11 +1,12 @@ /** * ESLint configuration. * - * Extends @rtcamp/eslint-config (the shared rtCamp toolchain, which bundles the - * WordPress ESLint plugin and the import/jsdoc/prettier rules) so this theme - * lints identically to the plugin skeleton. + * Extends the Jest entry of `@rtcamp/eslint-config` (the shared rtCamp + * toolchain, which bundles the WordPress ESLint plugin, the import/jsdoc/prettier + * rules and the Jest rules for test files) so this theme lints identically to + * the plugin skeleton. */ -import rtCampConfig from '@rtcamp/eslint-config'; +import rtCampConfig from '@rtcamp/eslint-config/jest'; export default [ ...rtCampConfig, diff --git a/package-lock.json b/package-lock.json index 3f701327..b1ca85c5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,7 +14,7 @@ "devDependencies": { "@babel/core": "7.29.7", "@eslint-community/eslint-plugin-eslint-comments": "4.8.1", - "@rtcamp/eslint-config": "^1.2.0", + "@rtcamp/eslint-config": "^2.0.0", "@rtcamp/stylelint-config": "^1.1.0", "@rtcamp/wp-tooling": "^2.0.0", "@wordpress/babel-preset-default": "10.0.0", @@ -6170,9 +6170,9 @@ } }, "node_modules/@rtcamp/eslint-config": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@rtcamp/eslint-config/-/eslint-config-1.2.0.tgz", - "integrity": "sha512-TfXM7JLli8DthOTK+fiyhR0bSYsouNOn2AU5If7S9M3w5V1SzVnSyv8fn93oUaeavPMsijya3gf9uo1+Vt6U1g==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@rtcamp/eslint-config/-/eslint-config-2.0.0.tgz", + "integrity": "sha512-isRf3o4m5sFUy+2xmy6YrmFKE17tVnqgjjnkkoxKPDt1Yq6AXCOUQlPc3pn+FgMhTfaCMUlOYlm+Q3eLatkNPw==", "dev": true, "license": "GPL-2.0-or-later", "engines": { @@ -6180,13 +6180,12 @@ }, "peerDependencies": { "@eslint-community/eslint-plugin-eslint-comments": "^4.7.1", - "@wordpress/eslint-plugin": "^25.1.0 || ^26.0.0 || ^27.0.0", + "@wordpress/eslint-plugin": "^27.0.0 || ^28.0.0", "eslint": "^10.0.0", - "eslint-import-resolver-typescript": "^4.4.4", "eslint-plugin-jest": "^29.0.0" }, "peerDependenciesMeta": { - "eslint-import-resolver-typescript": { + "eslint-plugin-jest": { "optional": true } } diff --git a/package.json b/package.json index e9bd78dc..e186313f 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "devDependencies": { "@babel/core": "7.29.7", "@eslint-community/eslint-plugin-eslint-comments": "4.8.1", - "@rtcamp/eslint-config": "^1.2.0", + "@rtcamp/eslint-config": "^2.0.0", "@rtcamp/stylelint-config": "^1.1.0", "@rtcamp/wp-tooling": "^2.0.0", "@wordpress/babel-preset-default": "10.0.0",