[筆記] 在使用 Vite 創建的 Vue 3 專案中加入 Eslint(使用 Airbnb 規範)


Posted by Calon on 2022-06-18

安裝所需插件:

$ yarn add -D eslint eslint-plugin-vue eslint-config-airbnb-base

執行完後新增 .eslintrc.js 檔,並加入以下設定:

module.exports = {
  root: true,
  env: {
    browser: true,
    es2021: true,
  },
  extends: [
    'plugin:vue/vue3-recommended',
    'airbnb-base',
  ],
};

#Vite #ESLint #vue3







Related Posts

7. SpringBoot使用jms 聆聽連線錯誤處理(2)

7. SpringBoot使用jms 聆聽連線錯誤處理(2)

Day07:V8 bytecode 系列文總結

Day07:V8 bytecode 系列文總結

[Windows] telnet 確定 TCP 連接埠為開啟或關閉 #ping # telnet

[Windows] telnet 確定 TCP 連接埠為開啟或關閉 #ping # telnet


Comments