Skip to content

Instantly share code, notes, and snippets.

@turtlepod
Created September 26, 2020 10:03
Show Gist options
  • Save turtlepod/8a9ee3499f544ef9a2a26482f2dbe379 to your computer and use it in GitHub Desktop.
Save turtlepod/8a9ee3499f544ef9a2a26482f2dbe379 to your computer and use it in GitHub Desktop.
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