0 points

Eslint default Vue config


dashboard

Wed Oct 21 2020 00:48:01 GMT+0000 (UTC)

Posted by @titusdecali #vue.js #eslint

module.exports = {
  root: true,
  env: {
    node: true
  },
  extends: [
    'plugin:vue/recommended',
    'eslint:recommended',
    'prettier/vue',
    'plugin:prettier/recommended'
  ],
  plugins: ['vue', 'prettier'],

  parserOptions: {
    parser: 'babel-eslint'
  },
  rules: {
    'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
    'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
    'prettier/prettier': 'error'
    // "vue/name-property-casing": ["error", "kebab-case"]
  }
}
content_copy Copy