| 1 |
{ |
| 2 |
"folders": [ |
| 3 |
{ |
| 4 |
"name": "wp-parsely", |
| 5 |
"path": ".." |
| 6 |
} |
| 7 |
], |
| 8 |
"launch": { |
| 9 |
// Use IntelliSense to learn about possible attributes. |
| 10 |
// Hover to view descriptions of existing attributes. |
| 11 |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 |
| 12 |
"version": "0.2.0", |
| 13 |
"configurations": [ |
| 14 |
{ |
| 15 |
"name": "Listen for Xdebug", |
| 16 |
"type": "php", |
| 17 |
"request": "launch", |
| 18 |
"port": 9003 |
| 19 |
}, |
| 20 |
] |
| 21 |
}, |
| 22 |
"extensions": { |
| 23 |
"recommendations": [ |
| 24 |
"dbaeumer.vscode-eslint", |
| 25 |
"usernamehw.errorlens", |
| 26 |
"xdebug.php-debug", |
| 27 |
"bmewburn.vscode-intelephense-client", |
| 28 |
"obliviousharmony.vscode-php-codesniffer", |
| 29 |
"persoderlind.vscode-phpcbf", |
| 30 |
"sanderronde.phpstan-vscode" |
| 31 |
] |
| 32 |
}, |
| 33 |
"settings": { |
| 34 |
// VSCode Custom Settings |
| 35 |
"typescript.tsdk": "node_modules/typescript/lib", |
| 36 |
"search.exclude": { |
| 37 |
"build/": true |
| 38 |
}, |
| 39 |
"[markdown]": { |
| 40 |
"files.trimTrailingWhitespace": false |
| 41 |
}, |
| 42 |
// Error Lens |
| 43 |
"errorLens.exclude": [ |
| 44 |
// Exclude type coverage errors to reduce noise. The errors are |
| 45 |
// still visible in all other parts of VSCode and will cause |
| 46 |
// pre-commit hooks to fail. |
| 47 |
" actually have it. Add more (return|param) types to get over " |
| 48 |
], |
| 49 |
// ESLint |
| 50 |
"eslint.format.enable": true, |
| 51 |
"eslint.validate": [ |
| 52 |
"javascript", |
| 53 |
"typescript", |
| 54 |
"javascriptreact", |
| 55 |
"typescriptreact" |
| 56 |
], |
| 57 |
"[javascript][typescript][javascriptreact][typescriptreact]": { |
| 58 |
"editor.codeActionsOnSave": { |
| 59 |
"source.organizeImports": "explicit" |
| 60 |
}, |
| 61 |
"editor.defaultFormatter": "dbaeumer.vscode-eslint", |
| 62 |
}, |
| 63 |
// PHP Code Sniffer |
| 64 |
"phpCodeSniffer.autoExecutable": true, |
| 65 |
"phpCodeSniffer.standard": "Custom", |
| 66 |
"phpCodeSniffer.standardCustom": "WordPress-VIP-Go,WordPress-Docs", |
| 67 |
// PHP Code Beautifier |
| 68 |
"phpcbf.standard": "WordPress-VIP-Go,WordPress-Docs", |
| 69 |
"phpcbf.onsave": true, |
| 70 |
"[php]": { |
| 71 |
"editor.defaultFormatter": "obliviousharmony.vscode-php-codesniffer", |
| 72 |
}, |
| 73 |
// PHPStan |
| 74 |
"phpstan.timeout": 30000, |
| 75 |
"phpstan.ignoreErrors": [ |
| 76 |
".*The Xdebug PHP extension is active.*", |
| 77 |
".*slow down performance.*", |
| 78 |
".*breakpoints.*", |
| 79 |
], |
| 80 |
// PHP Intelephense |
| 81 |
"intelephense.format.enable": false, |
| 82 |
"intelephense.environment.phpVersion": "7.1", |
| 83 |
"intelephense.stubs": [ |
| 84 |
// Defaults |
| 85 |
"apache", |
| 86 |
"bcmath", |
| 87 |
"bz2", |
| 88 |
"calendar", |
| 89 |
"com_dotnet", |
| 90 |
"Core", |
| 91 |
"ctype", |
| 92 |
"curl", |
| 93 |
"date", |
| 94 |
"dba", |
| 95 |
"dom", |
| 96 |
"enchant", |
| 97 |
"exif", |
| 98 |
"FFI", |
| 99 |
"fileinfo", |
| 100 |
"filter", |
| 101 |
"fpm", |
| 102 |
"ftp", |
| 103 |
"gd", |
| 104 |
"gettext", |
| 105 |
"gmp", |
| 106 |
"hash", |
| 107 |
"iconv", |
| 108 |
"imap", |
| 109 |
"intl", |
| 110 |
"json", |
| 111 |
"ldap", |
| 112 |
"libxml", |
| 113 |
"mbstring", |
| 114 |
"meta", |
| 115 |
"mysqli", |
| 116 |
"oci8", |
| 117 |
"odbc", |
| 118 |
"openssl", |
| 119 |
"pcntl", |
| 120 |
"pcre", |
| 121 |
"PDO", |
| 122 |
"pdo_ibm", |
| 123 |
"pdo_mysql", |
| 124 |
"pdo_pgsql", |
| 125 |
"pdo_sqlite", |
| 126 |
"pgsql", |
| 127 |
"Phar", |
| 128 |
"posix", |
| 129 |
"pspell", |
| 130 |
"readline", |
| 131 |
"Reflection", |
| 132 |
"session", |
| 133 |
"shmop", |
| 134 |
"SimpleXML", |
| 135 |
"snmp", |
| 136 |
"soap", |
| 137 |
"sockets", |
| 138 |
"sodium", |
| 139 |
"SPL", |
| 140 |
"sqlite3", |
| 141 |
"standard", |
| 142 |
"superglobals", |
| 143 |
"sysvmsg", |
| 144 |
"sysvsem", |
| 145 |
"sysvshm", |
| 146 |
"tidy", |
| 147 |
"tokenizer", |
| 148 |
"xml", |
| 149 |
"xmlreader", |
| 150 |
"xmlrpc", |
| 151 |
"xmlwriter", |
| 152 |
"xsl", |
| 153 |
"Zend OPcache", |
| 154 |
"zip", |
| 155 |
"zlib", |
| 156 |
"wordpress", |
| 157 |
// Custom |
| 158 |
"vendor/php-stubs/wordpress-tests-stubs/" |
| 159 |
], |
| 160 |
} |
| 161 |
} |
| 162 |
|