1.3.0 • Published 4 years ago
@taikonauten/linters-phpcs v1.3.0
This package provides the phpcs configuration used at Taikonauten.
Installation
brew install composercomposer require "squizlabs/php_codesniffer=*" --ignore-platform-reqsInside project root
npm install --save-dev @taikonauten/linters-phpcscp node_modules/@taikonauten/linters-phpcs/phpcs.xml phpcs.xmlAdd 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