Skip to content

Internal: add linters#653

Merged
rami-elementor merged 2 commits into
mainfrom
lint
May 25, 2026
Merged

Internal: add linters#653
rami-elementor merged 2 commits into
mainfrom
lint

Conversation

@rami-elementor
Copy link
Copy Markdown
Member

@rami-elementor rami-elementor commented May 25, 2026

✨ PR Description

1. Problem & Context

Adds comprehensive linting infrastructure for PHP, CSS, and JS with unified npm scripts and shared configs. Enables standardized code quality checks across the project.

2. What Changed (Where)

  • composer.json: Renamed lint scripts from lint/lint:fix to lint:php/lint:php:fix for clarity
  • package.json: Added aggregated lint command plus CSS/JS/PHP linting scripts with fix variants
  • .stylelintrc: New WordPress stylelint config with SCSS plugin support, selective rule overrides
  • .buildignore: Excluded .stylelintrc from build artifacts

3. How It Works

npm's unified lint script orchestrates all three linters (npm run lint:css && npm run lint:js && npm run lint:php). PHP and JS linters delegate to composer and wp-scripts respectively; CSS uses wp-scripts with SCSS plugin. All linters ignore node_modules, vendor, assets, and tests directories.

4. Risks

Minor: CSS linting disables selector naming patterns—verify this doesn't mask accessibility issues in naming conventions. No breaking changes; existing composer scripts renamed but functionality preserved.

Generated by LinearB AI and added by gitStream.
AI-generated content may contain inaccuracies. Please verify before using.
💡 Tip: You can customize your AI Description using Guidelines Learn how

@rami-elementor rami-elementor merged commit 8f38380 into main May 25, 2026
42 checks passed
@rami-elementor rami-elementor deleted the lint branch May 25, 2026 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants