Skip to content

docs(dev): add copyable PHP-CS-Fixer and ESLint setup - #15711

Open
whoalin1 wants to merge 1 commit into
nextcloud:masterfrom
whoalin1:docs-copyable-php-cs-fixer-eslint-setup
Open

whoalin1 wants to merge 1 commit into
nextcloud:masterfrom
whoalin1:docs-copyable-php-cs-fixer-eslint-setup

Conversation

@whoalin1

@whoalin1 whoalin1 commented Oct 6, 2026 •

Copy link
Copy Markdown

Summary

Coding standards pages linked to nextcloud/coding-standard and @nextcloud/eslint-config but had no copyable setup steps, and npm.rst still showed the legacy eslint --ext CLI.

  • php.rst: add composer require --dev nextcloud/coding-standard, a minimal .php-cs-fixer.dist.php, and cs:check / cs:fix scripts.
  • javascript.rst: add install + flat eslint.config.js using @nextcloud/eslint-config recommended.
  • npm.rst: replace eslint --ext with directory-based eslint src for flat config.

Closes #15684

Test plan

  • Sphinx build of the developer manual succeeds for php / javascript / npm pages
  • php.rst Setup lists composer require, .php-cs-fixer.dist.php, and cs:check / cs:fix
  • javascript.rst shows eslint.config.js importing recommended from @nextcloud/eslint-config
  • npm.rst lint scripts no longer use --ext

AI disclosure

This PR was drafted with the help of AI coding assistants (Cursor agents / LLM-based tools), including the description. I am responsible for it and happy to rework anything that doesn't fit.

All commits carry an Assisted-by: Cursor:grok-4.7 trailer.

Assisted-by: Cursor:grok-4.7
Signed-off-by: whoalin1 <[email protected]>
@whoalin1
whoalin1 force-pushed the docs-copyable-php-cs-fixer-eslint-setup branch from 1409ee5 to 7b6c4f4 Compare October 9, 2026 14:12

This branch has not been deployed

No deployments
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.

Developer manual: copyable setup for PHP-CS-Fixer and ESLint

1 participant