Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

ByPassaRe/Pick-a-park-api

Repository files navigation

Pick-A-Park

VSCode autofix using ESlint and Prettier

To make VsCode autofix your code using prettier and Eslint add this to the general settings.json file (search using Ctrl+Shift+p)

"eslint.autoFixOnSave": true,
    "eslint.validate": [
        "javascript",
        "javascriptreact",
    { "language": "typescript", "autoFix": true },
    { "language": "typescriptreact", "autoFix": true }
  ]

For example this is my configuration:

{
    "editor.suggestSelection": "first",
    "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
    "eslint.autoFixOnSave": true,
    "eslint.validate": [
        "javascript",
        "javascriptreact",
    { "language": "typescript", "autoFix": true },
    { "language": "typescriptreact", "autoFix": true }
  ]
    
}