Skip to content

Instantly share code, notes, and snippets.

@ManoloTonto1
Created March 28, 2023 19:12
Show Gist options
  • Select an option

  • Save ManoloTonto1/320448d90cbea6d336692036b776b19a to your computer and use it in GitHub Desktop.

Select an option

Save ManoloTonto1/320448d90cbea6d336692036b776b19a to your computer and use it in GitHub Desktop.
Vue3 + TS eslint template
// My prefered settings are like this. Just remember to change the parser to the vue-eslint-parser for eslint to be able to work.
module.exports = {
'env': {
'browser': true,
'es2021': true
},
'extends': [
'eslint:recommended',
'plugin:vue/vue3-essential',
'plugin:@typescript-eslint/recommended'
],
'overrides': [
],
'parser': 'vue-eslint-parser',
'parserOptions': {
'parser': '@typescript-eslint/parser',
'ecmaVersion': 'latest',
'sourceType': 'module'
},
'plugins': [
'vue',
'@typescript-eslint'
],
'rules': {
'indent': [
'error',
'tab'
],
'linebreak-style': [
'error',
'windows'
],
'quotes': [
'error',
'single'
],
'semi': [
'error',
'always'
]
}
};
# in the config just fill in what seetings you want.
npm install --save-dev eslint vue-eslint-parser && npm init @eslint/config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment