hakhsin
1 year ago
11281
4
Vue

Disable unused variable error

Posted 1 year ago by hakhsin

Hi, how can I disable unused variable error? I know I have to add this 'vue/no-unused-vars': 'off' to .eslintrc.js but it doesn't work for me. Now, what do I do? Here is my .eslintrc.js file content:

module.exports = {
  root: true,
  env: {
    node: true
  },
  'extends': [
    'plugin:vue/strongly-recommended',
    'eslint:recommended'
  ],
  rules: {
    'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
    'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
    'vue/no-unused-vars': 'off'
  },
  parserOptions: {
    parser: 'babel-eslint'
  }
};

Please sign in or create an account to participate in this conversation.