Skip to content

Instantly share code, notes, and snippets.

@Peruibeloko
Created September 25, 2021 17:41
Show Gist options
  • Save Peruibeloko/501a3c35c73d38ed1347c1335055cb6c to your computer and use it in GitHub Desktop.
Save Peruibeloko/501a3c35c73d38ed1347c1335055cb6c to your computer and use it in GitHub Desktop.
ESLint config for Vue 3 projects
module.exports = {
extends: 'eslint:recommended',
plugins: ['plugin:vue/vue3-recommended', 'eslint:recommended'],
env: {
es2021: true,
browser: true
},
rules: {
'arrow-parens': ['warn', 'as-needed'],
'comma-dangle': ['warn', 'never'],
quotes: ['warn', 'single'],
'no-unused-vars': [
'error',
{
varsIgnorePattern: '^_',
argsIgnorePattern: '^_'
}
]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment