diff --git a/composer.json b/composer.json index be31c62..db020a0 100644 --- a/composer.json +++ b/composer.json @@ -11,8 +11,8 @@ "build": "./_tools/build.sh", "lint": "composer run lint:php; npm run lint", "lint:fix": "composer run lint:php:fix; npm run lint:fix", - "lint:php": "./vendor/bin/phpcs --standard=WordPress,PHPCompatibilityWP --runtime-set testVersion 7.4- --colors --encoding=utf-8 -p --ignore=index.php ./src/*.php ./src/*/*.php ./src/*/*/*.php", - "lint:php:fix": "./vendor/bin/phpcbf --standard=WordPress,PHPCompatibilityWP --runtime-set testVersion 7.4- --colors --encoding=utf-8 -p --ignore=index.php ./src/*.php ./src/*/*.php ./src/*/*/*.php", + "lint:php": "./vendor/bin/phpcs", + "lint:php:fix": "./vendor/bin/phpcbf", "lint:css": "npm run lint:css", "lint:css:fix": "npm run lint:css:fix", "lint:js": "npm run lint:js", diff --git a/phpcs.xml.dist b/phpcs.xml.dist new file mode 100644 index 0000000..ee5a1f6 --- /dev/null +++ b/phpcs.xml.dist @@ -0,0 +1,30 @@ + + + The coding standard for PHP_CodeSniffer itself. + + src + + index.php + + + + + + + + + + + + + + + + + + + + + + +