Skip to content

Instantly share code, notes, and snippets.

@sokna7
Last active November 1, 2020 18:37
Show Gist options
  • Save sokna7/257168c5dfad13920790528139da3962 to your computer and use it in GitHub Desktop.
Save sokna7/257168c5dfad13920790528139da3962 to your computer and use it in GitHub Desktop.
vue ts eslintrc example
module.exports = {
root: true,
env: {
browser: true,
node: true,
es6: true,
},
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
sourceType: 'module',
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'prettier/@typescript-eslint',
'plugin:vue/essential',
'prettier',
],
rules: {
'prettier/prettier': 'error',
},
plugins: ['@typescript-eslint', 'prettier'],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment