Add yarn script commands for Drupal coding standard and Drupal Practice for Webshare
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3501714. --> Reported by: [shaimaa natshah](https://www.drupal.org/user/2646783) >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <h3>Drupal coding standard and Drupal Practice check should pass</h3> <p><strong>PHPCS</strong>, <strong>PHPCBF</strong> for both --standard=<strong>Drupal</strong> and --standard=<strong>DrupalPractice</strong></p> <h4>Check Webshare Drupal coding standard</h4> <pre>phpcbf --standard=Drupal --extensions=php,module,inc,install,test,theme,scss,css,info,txt,md,yml /var/www/html/products/webshare/ --ignore=/var/www/html/products/webshare/node_modules/<br><br>phpcs --standard=Drupal --extensions=php,module,inc,install,test,theme,scss,css,info,txt,md,yml /var/www/html/products/webshare/ --ignore=/var/www/html/products/webshare/node_modules/</pre><h4>Check Webshare Drupal Practice</h4> <pre>phpcbf --standard=DrupalPractice --extensions=php,module,inc,install,test,theme,scss,css,info,txt,md,yml /var/www/html/products/webshare/ --ignore=/var/www/html/products/webshare/node_modules/<br><br>phpcs --standard=DrupalPractice --extensions=php,module,inc,install,test,theme,scss,css,info,txt,md,yml /var/www/html/products/webshare/ --ignore=/var/www/html/products/webshare/node_modules/</pre><p> </p> <hr> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <pre>yarn phpcs<br>yarn phpcbf<br>yarn lint:yaml</pre><p>as</p> <pre>&nbsp; "scripts": {<br>&nbsp;&nbsp;&nbsp; "phpcs": "phpcs --standard=./.phpcs.xml .",<br>&nbsp;&nbsp;&nbsp; "phpcbf": "phpcbf --standard=./.phpcs.xml .",<br>&nbsp;&nbsp;&nbsp; "lint:yaml": "node ./node_modules/eslint/bin/eslint.js --config=.eslintrc.json --ext .yml ."<br>&nbsp; },</pre>
issue