Last active
July 4, 2023 13:41
-
-
Save sarahcssiqueira/45aa5a573bc741daecdbd57aa75f9cc3 to your computer and use it in GitHub Desktop.
PHPCS config using Composer, VS Code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"scripts": { | |
"cstd": "./vendor/bin/phpcs --config-set installed_paths vendor/wp-coding-standards/wpcs", | |
}, | |
"require-dev": { | |
"squizlabs/php_codesniffer": "^3.7", | |
"wp-coding-standards/wpcs": "^2.3", | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"phpcs.enable": true, | |
"phpcs.lintOnSave": true, | |
"phpcs.showSources": false, | |
"phpcs.standard": "WordPress", | |
"phpcs.ignorePatterns": [ | |
"*/vendor/*" | |
], | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment