發表文章

目前顯示的是 7月, 2021的文章

vue3 + typescript autofix

//----------------- settings.json {      "window.zoomLevel" :  1 ,      "editor.renderWhitespace" :  "all" ,      "workbench.iconTheme" :  "material-icon-theme" ,      "editor.codeActionsOnSave" : {          "source.fixAll.eslint" :  true     },      "eslint.validate" : [          "typescript"     ], } //-----------------.eslintrc.js module . exports  = {    root :   true ,    env :  {      node :   true ,   },    extends :  [      'plugin:vue/vue3-essential' ,      'eslint:recommended' ,      '@vue/typescript/recommended' ,      '@vue/prettier' ,      '@vue/prettier/@typescript-eslint' ,   ],    parserOptions :  {      ecmaVersion :   2020 ,   },    rules :  {      'prettier/prettier' :  [        'error' ,       {          singleQuote :   true ,       },     ],      'no-console' :   process . env . NODE_ENV  ===  'production'