Skip to content

Commit c077b46

Browse files
Version Packages (alpha) (#261)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 3f8da04 commit c077b46

5 files changed

Lines changed: 38 additions & 3 deletions

File tree

.changeset/pre.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,8 @@
55
"@wearerequired/eslint-config": "6.0.1",
66
"@wearerequired/stylelint-config": "6.0.1"
77
},
8-
"changesets": []
8+
"changesets": [
9+
"eslint-config-flat-config",
10+
"stylelint-config-stylelint-16"
11+
]
912
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# @wearerequired/eslint-config
2+
3+
## 7.0.0-alpha.0
4+
5+
### Major Changes
6+
7+
- 3f8da04: Switch to [ESLint flat config](https://eslint.org/docs/latest/use/configure/configuration-files). The package now exports an array of flat config objects.
8+
9+
- Raise the `eslint` peer dependency from `>=8 <9` to `^9.0.0 || ^10.0.0`. ESLint 10 works when ESLint comes from `@wordpress/scripts` (v32+, the recommended WordPress setup). A standalone direct ESLint 10 install may need `--legacy-peer-deps` because the classic `eslint-plugin-import@2` bundled by `@wordpress/eslint-plugin` still stops at ESLint 9 in its peer range (fixed upstream once WordPress moves to `eslint-plugin-import-x`).
10+
- Raise the `@wordpress/eslint-plugin` peer dependency from `>=17 <25` to `^25.0.0`. This version bundles both `typescript-eslint` and `eslint-import-resolver-typescript` as direct dependencies, which fixes the recurring transitive `@typescript-eslint` resolution failures. The upper bound is kept because the config spreads the plugin's `configs.recommended` flat-config array, whose shape may change across majors.
11+
- Refresh the `import/core-modules` allowlist to the current set of WordPress script packages, so their imports are not reported as unresolved. Adds 20 packages, including `@wordpress/preferences`, `@wordpress/preferences-persistence`, `@wordpress/commands`, `@wordpress/interactivity`, `@wordpress/patterns` and `@wordpress/router`.
12+
13+
Migration: delete `.eslintrc*` and `.eslintignore`, then add an `eslint.config.js` in your project root:
14+
15+
```js
16+
const config = require("@wearerequired/eslint-config");
17+
18+
module.exports = config;
19+
```

packages/eslint-config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@wearerequired/eslint-config",
3-
"version": "6.0.1",
3+
"version": "7.0.0-alpha.0",
44
"description": "required coding standard for JavaScript.",
55
"repository": {
66
"type": "git",
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# @wearerequired/stylelint-config
2+
3+
## 7.0.0-alpha.0
4+
5+
### Major Changes
6+
7+
- 3f8da04: Update to stylelint 16 and `@wordpress/stylelint-config` 23.
8+
9+
- Raise the `stylelint` peer dependency from `^14` to `^16.8.2` and the `@wordpress/stylelint-config` peer dependency from `^21` to `^23`. Add `stylelint-scss` (`^6.4.0`) as a peer dependency.
10+
- Extend `@wordpress/stylelint-config/stylistic` (and `/scss-stylistic` for the SCSS preset) so stylelint keeps enforcing formatting after stylelint 16 moved the stylistic rules into `@stylistic/stylelint-plugin`. The stylistic rules now carry the `@stylistic/` prefix; required's overrides are preserved (`max-line-length: 100`, `max-empty-lines: 1`, `number-leading-zero: never`, `function-parentheses-space-inside: always-single-line`, `function-comma-space-after: always-single-line`, `media-feature-parentheses-space-inside: always`).
11+
- Remove the `@stylistic/stylelint-plugin` and `stylelint-config-recommended-scss` direct dependencies — both are provided transitively by `@wordpress/stylelint-config`.
12+
13+
The BEM `selector-class-pattern`, `function-url-quotes`, the `postcss-mixins` `at-rule-no-unknown` allowance and the `*-empty-line-before` rules are kept.

packages/stylelint-config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@wearerequired/stylelint-config",
3-
"version": "6.0.1",
3+
"version": "7.0.0-alpha.0",
44
"description": "required coding standard for (S)CSS.",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)