PHPCS and SCSS linting for VSCode on Windows 10.
- Download PHP for Windows
- Download Composer for Windows
- Install PHP_CodeSniffer
- Install Node.js for Windows
- Get WordPress-Coding-Standards and PHPCompatibility
composer global require wp-coding-standards/wpcs dealerdirect/phpcodesniffer-composer-installer phpcompatibility/php-compatibility
cd C:\wsl-tools
,phpcs.bat --config-set installed_paths "C:\\wsl-tools\\vendor\\wp-coding-standards\\wpcs","C:\\wsl-tools\\vendor\\phpcompatibility\\php-compatibility"
composer install
- Verify with
phpcs -i
- Install stylelint and eslint by [npm i stylelint eslint -g]
- Put executables you need like php.exe, go-pear.phar, wget.exe, ffmpeg.exe, etc. to C:\UnxUtils
- Add C:\UnxUtils and PHP dir to environment variables
- Run
php go-pear.phar
- Download repo
- Unpack repository contents to C:\wsl-tools
- Use the settings.json included in this repository