Last active
April 29, 2022 07:04
-
-
Save tq-bit/878fd34bc7ff673c18f3874addab7c36 to your computer and use it in GitHub Desktop.
Simple setup of Vue 3 + Lint. Run with bash <(curl -s https://gist.githubusercontent.com/tq-bit/878fd34bc7ff673c18f3874addab7c36/raw/e9c06f7051c1eb5a8981c814998caa06762087b0/vue3-ts-lint-setup.sh)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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