Skip to content

Instantly share code, notes, and snippets.

@turtlepod
Created September 26, 2020 10:03

Revisions

  1. turtlepod created this gist Sep 26, 2020.
    20 changes: 20 additions & 0 deletions composer.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    {
    "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/* ."
    }
    }