Skip to content

Instantly share code, notes, and snippets.

@tq-bit
Last active April 29, 2022 07:04
Show Gist options
  • Save tq-bit/878fd34bc7ff673c18f3874addab7c36 to your computer and use it in GitHub Desktop.
Save tq-bit/878fd34bc7ff673c18f3874addab7c36 to your computer and use it in GitHub Desktop.
npm create vite@latest .
npm install
npm i -D eslint prettier @vue/eslint-config-typescript @rushstack/eslint-patch eslint-config-prettier eslint-plugin-prettier
echo """{
\"bracketSpacing\": true,
\"semi\": true,
\"singleQuote\": true,
\"trailingComma\": \"all\",
\"printWidth\": 80,
\"tabWidth\": 2
}""" > .prettierrc
echo """{
\"env\": {
\"browser\": true,
\"es2021\": true
},
\"extends\": [\"plugin:vue/vue3-essential\", \"prettier\"],
\"parserOptions\": {
\"ecmaVersion\": \"latest\",
\"parser\": \"@typescript-eslint/parser\",
\"sourceType\": \"module\"
},
\"plugins\": [\"vue\", \"@typescript-eslint\", \"prettier\"],
\"rules\": {
\"prettier/prettier\": [\"error\"],
\"vue/multi-word-component-names\": [
\"error\",
{ \"ignores\": [\"index\"] }
]
}
}
""" >.eslintrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment