Giter Club home page Giter Club logo

linter-sniffer-pretty-printer's Introduction

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.

linter-sniffer-pretty-printer's People

Contributors

christophherr avatar srikat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.