Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

to add autofix when saving files in Eslint

"files.autoSave": "off",
  "editor.formatOnSave": true,
  "eslint.autoFixOnSave": true,
  "editor.codeActionsOnSave": {
    "source.fixAll": true,
    "source.organizeImports": true
  },
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #autofix #saving #files #Eslint
ADD COMMENT
Topic
Name
3+5 =