Skip to content

Instantly share code, notes, and snippets.

@dib258
Last active February 4, 2022 13:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dib258/afa85f16affb34315bfe58692297d73b to your computer and use it in GitHub Desktop.
Save dib258/afa85f16affb34315bfe58692297d73b to your computer and use it in GitHub Desktop.
Visual Studio Code - User Settings, configuration of ESLint to lint with vetur and PHP-CS-Fixer
{
/**
* Vue Linting - Vetur
*/
"html.format.enable": false,
"vetur.format.options.tabSize": 4,
"vetur.format.scriptInitialIndent": true,
"vetur.format.styleInitialIndent": true,
"vetur.validation.template": false,
/**
* ESLint
*/
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.validate": [
"javascript",
"typescript",
"vue",
"html",
"php"
],
"eslint.options": {
"overrideConfigFile": ".eslintrc.local.json",
"ignorePath": ".eslintignore"
},
"eslint.packageManager": "yarn",
/**
* PHP CS Fixer
**/
"[php]": {
"editor.defaultFormatter": "junstyle.php-cs-fixer",
},
"php-cs-fixer.executablePath": "${workspaceFolder}/vendor/bin/php-cs-fixer",
"php-cs-fixer.onsave": true,
"php-cs-fixer.config": ".php-cs-fixer.local.php" ,
"php-cs-fixer.autoFixByBracket": false,
"php-cs-fixer.autoFixBySemicolon": false,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment