Skip to content

Instantly share code, notes, and snippets.

@cqsd
Created February 9, 2021 01:38
Show Gist options
  • Save cqsd/4a2bc334b53690a1835129eb7304daf0 to your computer and use it in GitHub Desktop.
Save cqsd/4a2bc334b53690a1835129eb7304daf0 to your computer and use it in GitHub Desktop.
default typescript vue project eslint + prettier
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
},
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'plugin:vue/vue3-essential',
'prettier/@typescript-eslint',
],
parserOptions: {
ecmaVersion: 12,
parser: '@typescript-eslint/parser',
sourceType: 'module',
},
plugins: ['@typescript-eslint'],
rules: {},
}
{
"trailingComma": "es5",
"tabWidth": 2,
"semi": false,
"singleQuote": true
}
@typescript-eslint/eslint-plugin
@typescript-eslint/parser
eslint
eslint-config-prettier
eslint-plugin-prettier
eslint-plugin-vue
prettier
typescript
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment