Skip to content

Instantly share code, notes, and snippets.

@turtlepod
Created September 26, 2020 10:03
Contoh Composer dari tutorial youtube.
{
"name": "test-plugin-wpcs",
"description": "Plugin with WPCS",
"authors": [
{
"name": "Author",
"email": "david@shellcreeper.com"
}
],
"require": {
},
"require-dev": {
"wp-coding-standards/wpcs": "^2.3",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0"
},
"scripts": {
"lint": "phpcs --standard=WordPress --basepath=. --warning-severity=8 --ignore=*/vendor/*,*/node_modules/* .",
"lint-fix": "phpcbf --standard=WordPress --ignore=*/vendor/*,*/node_modules/* ."
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment