1.3.0 • Published 3 years ago

@taikonauten/linters-phpcs v1.3.0

Weekly downloads
13
License
MIT
Repository
github
Last release
3 years ago

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