Skip to content

Instantly share code, notes, and snippets.

@aeadedoyin
Last active June 2, 2022 17:45
Show Gist options
  • Save aeadedoyin/4f34a52fc390f2fe28ac448db91c1de4 to your computer and use it in GitHub Desktop.
Save aeadedoyin/4f34a52fc390f2fe28ac448db91c1de4 to your computer and use it in GitHub Desktop.
A fluent .eslint for your Vue(Nuxt) project without all the mess.
module.exports = {
root: true,
env: {
browser: true,
node: true
},
extends: [
'@nuxtjs',
'plugin:nuxt/recommended',
'eslint:recommended' // <- add this line
// 'plugin:prettier/recommended', <- remove this line
],
parserOptions: {
parser: 'babel-eslint'
},
// add your custom rules here
rules: {
indent: 2,
'arrow-parens': 0,
'no-new': 0,
'no-unused-expressions': 0,
'vue/no-v-html': 0,
'space-before-function-paren': 0,
'no-console': 0,
'operator-linebreak': 0,
'sort-keys': [0, 'asc', { caseSensitive: true, natural: true, minKeys: 2 }],
'vue/attributes-order': [
2,
{
alphabetical: true
}
],
'vue/no-vue-html': 0
},
plugins: ['prettier']
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment