@taikonauten/linters-phpcs

1.3.0 • Public • Published

Taikonauten phpcs configuration

 

This package provides the phpcs configuration used at Taikonauten.

Installation

brew install composer
composer require "squizlabs/php_codesniffer=*" --ignore-platform-reqs

Inside project root

npm install --save-dev @taikonauten/linters-phpcs
cp node_modules/@taikonauten/linters-phpcs/phpcs.xml phpcs.xml

Add the following script to your package.json (if any)

{
  "scripts": {
    "lint": "npm run lint:php",
    "lint:php": "./vendor/bin/phpcs --standard=phpcs.xml",
  }
}

Using with your IDE or Editor

After that, make sure your editor or IDE supports the phpcs.xml file. Install a phpcs extension:

For Visual Studio Code, install the phpcs plugin.


Made with ♡ at Taikonauten

Readme

Keywords

Package Sidebar

Install

npm i @taikonauten/linters-phpcs

Weekly Downloads

34

Version

1.3.0

License

MIT

Unpacked Size

14.7 kB

Total Files

4

Last publish

Collaborators

  • sf-taiko
  • taiko-org
  • nicolaisteinel
  • schllng
  • lempa
  • tststststststs