Skip to content

Use WordPress's CSS coding standards, and add a Dependabot cooldown - #152

Open
PDowney wants to merge 1 commit into
mainfrom
wordpress-stylelint-dependabot-cooldown
Open

PDowney wants to merge 1 commit into
mainfrom
wordpress-stylelint-dependabot-cooldown

Conversation

@PDowney

@PDowney PDowney commented Nov 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

WordPress CSS coding standards

  • .stylelintrc.json extends @wordpress/stylelint-config (27.1.0) in place of stylelint-config-standard. stylelint-no-unsupported-browser-features and its inline exceptions are unchanged.
  • The WordPress config needs Stylelint 17 (peerDependencies: stylelint ^17.14.1), so Stylelint moves from 18.0.0 to 17.16.0. A Dependabot ignore entry holds back Stylelint's major updates, as is already done for ESLint 9. Remove it when a release of the WordPress config supports Stylelint 18.
  • stylelint-scss (7.5.0) is added because the WordPress config requires it as a peer.
  • The lint job's npm ls check names @wordpress/stylelint-config in place of stylelint-config-standard.
  • assets/css/admin.css already met the WordPress standards and is unchanged. Changelog entry in CHANGELOG.md.

Dependabot

  • cooldown: default-days: 7 on every ecosystem: a new release is proposed only after it has been out for 7 days, so a compromised release is usually found and pulled first. Security updates are not delayed.
  • A security-updates group (applies-to: security-updates) on every ecosystem, so security fixes arrive in a pull request of their own, separate from the weekly version groups. Dependabot security updates are on in this repository.

npm audit has the same two advisories as before (picomatch, which has no fixed release, and minimatch). Both come from the existing Stylelint and ESLint packages, and they now show up under the new packages too.

Testing

  • npm run lint:css, npm run lint:js: clean. npm ls: valid tree.
  • yamllint, check-jsonschema (Dependabot and workflow schemas), zizmor --offline: clean. actionlint -shellcheck= on the workflow: clean; ShellCheck on the changed run: block: clean (full actionlint with ShellCheck times out on this workflow locally).
  • markdownlint-cli2 CHANGELOG.md: clean. gitleaks on the staged changes: no leaks.

🤖 Generated with Claude Code

Stylelint extends @wordpress/stylelint-config in place of
stylelint-config-standard. The WordPress config needs Stylelint 17, so
Stylelint is pinned at 17.16.0 with a Dependabot ignore entry for its major
updates, like ESLint 9. stylelint-scss is a required peer of the config.

Dependabot waits 7 days before proposing a new release, and security updates
arrive in a group of their own for each ecosystem.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added documentation Improvements or additions to documentation dependencies Pull requests that update a dependency file automation testing labels Nov 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for contributing to Optimizations ACE MC!

Before we review:

  • Have you tested your changes with WordPress 7.0+?
  • Are your changes compatible with PHP 8.3+?
  • Have you followed WordPress coding standards?
  • Did you update the CHANGELOG.md if needed?

Security Reminder
This plugin changes WooCommerce, WP Store Locator, and WordPress admin screens, so please ensure:

  • All user input is properly sanitized
  • All output is properly escaped
  • No security vulnerabilities are introduced

We'll review your PR soon.

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automation dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant