Skip to content

fix(ci): separate file and project lint commands - #834

Merged
aryanjasala merged 1 commit into
mainfrom
fix/lint-files-scripts
Nov 5, 2026
Merged

aryanjasala merged 1 commit into
mainfrom
fix/lint-files-scripts

Conversation

@Adi-ty

@Adi-ty Adi-ty commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Description

Separate changed-file linting from whole-project linting. Previously, appending file paths to scripts that already targeted . or ./src still linted the entire directory.

Technical Details

  • Add path-free lint:js:files and lint:css:files commands.
  • Preserve existing whole-project scopes through lint:js and lint:css.
  • Configure CI and pre-commit hooks to use the file-specific commands.
  • Allow CSS linting to succeed when all supplied files are ignored.

Checklist

Screenshots

N/A

TODO

Before merging, ensure the workflow ref used here includes rtCamp/wp-shared-workflows#47, then rerun CI.

Fixes/Covers issue

Related to rtCamp/wp-shared-workflows#47

@Adi-ty

Adi-ty commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

Depends on rtCamp/wp-shared-workflows#47. Merge after a release containing its new lint-command inputs is available, this workflow references that release, and CI passes.

@Adi-ty
Adi-ty marked this pull request as ready for review November 3, 2026 15:06
Copilot AI balanced review requested due to automatic review settings November 3, 2026 15:06

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

@aryanjasala
aryanjasala merged commit 0bb2118 into main Nov 5, 2026
@aryanjasala
aryanjasala deleted the fix/lint-files-scripts branch November 5, 2026 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants