Linter Sniffer Pretty Printer Save

Collection of packages and configs to lint and format code in your WordPress project.

Project README

Sniffer, Linter, Pretty Printer

A collection of configurations for PHPCS, the ESLint JavaScript linter, the Stylelint CSS linter, Editorconfig and Browserslist for your WordPress projects.

Disclaimer

I use this as base for my themes and plugins.

If you want to contribute to WordPress Core, please make sure to follow the official WordPress Coding Standards. I can't guarantee that using the configurations in this repository ensures 100% adherence to the official WordPress Coding Standards.

As a matter of fact, the following warning was given on the WP Australia Slack group:

My recommendation is to not use it, you won’t be adhering to WordPress’s coding standards if you use that repo.

A whole bunch of things, there are official packages with official coding standards, those are the packages that should be used.

Please use at your own discretion or write your own package.json and configs (maybe without Prettier).

Origin of configs/packages (installed through npm or packagist)

Origin of manually added configs

Why Prettier?

Because it makes life easier. But it might cause deviations from pure WordPress coding standards.

Usage

Sridhar Katakam has written a tutorial on how to setup Visual Studio Code with Prettier and the configs from this repo.

https://sridharkatakam.com/linting-and-formatting-in-visual-studio-code-for-wordpress/

Contributions

Feedback, bug reports, and pull requests are welcome.

Contributors

Thank you to everyone contributing to this project.

Open Source Agenda is not affiliated with "Linter Sniffer Pretty Printer" Project. README Source: christophherr/linter-sniffer-pretty-printer

Open Source Agenda Badge

Open Source Agenda Rating