Problem/Motivation
Saving time on checking standards and practice before committing any code.
Drupal coding standard and Drupal Practice check should pass
PHPCS, PHPCBF for both --standard=Drupal and --standard=DrupalPractice
Check Varbase Layout Builder Drupal coding standard
phpcbf --standard=Drupal --extensions=php,module,inc,install,test,theme,scss,css,info,txt,md,yml /var/www/html/products/varbase_layout_builder/ --ignore="/var/www/html/products/varbase_layout_builder/node_modules/ , /var/www/html/products/varbase_layout_builder/themes/claro/node_modules/" phpcs --standard=Drupal --extensions=php,module,inc,install,test,theme,scss,css,info,txt,md,yml /var/www/html/products/varbase_layout_builder/ --ignore="/var/www/html/products/varbase_layout_builder/node_modules/ , /var/www/html/products/varbase_layout_builder/themes/claro/node_modules/"Check Varbase Layout Builder Drupal Practice
phpcbf --standard=DrupalPractice --extensions=php,module,inc,install,test,theme,scss,css,info,txt,md,yml /var/www/html/products/varbase_layout_builder/ --ignore="/var/www/html/products/varbase_layout_builder/node_modules/ , /var/www/html/products/varbase_layout_builder/themes/claro/node_modules/" phpcs --standard=DrupalPractice --extensions=php,module,inc,install,test,theme,scss,css,info,txt,md,yml /var/www/html/products/varbase_layout_builder/ --ignore="/var/www/html/products/varbase_layout_builder/node_modules/ , /var/www/html/products/varbase_layout_builder/themes/claro/node_modules/"
Proposed resolution
yarn eslint
yarn stylelint
yarn phpcs
yarn phpcbf
as
"scripts": {
"eslint": "node ./node_modules/eslint/bin/eslint.js --config=.eslintrc.json .",
"stylelint": "npx stylelint --config=.stylelintrc.json .",
"phpcs": "phpcs --standard=./.phpcs.xml .",
"phpcbf": "phpcbf --standard=./.phpcs.xml ."
},
Full test after fixing all standard on stylelint
And eslint for Background Videos
Click to watch the video

Comments
Comment #3
rajab natshahComment #4
rajab natshahComment #6
rajab natshahThe Inline commands
gulp compile
yarn phpcbf
yarn eslint
yarn stylelint
Comment #7
rajab natshahComment #8
rajab natshahComment #9
rajab natshahBig Pipe Process Place holder Replacement
Comment #10
rajab natshahComment #12
rajab natshahComment #13
rajab natshahComment #14
rajab natshahFull test after fixing all standard on stylelint

And eslint for Background Videos
Click to watch the video
Comment #15
rajab natshahComment #17
rajab natshahComment #18
rajab natshahComment #20
rajab natshahComment #21
rajab natshah