Your syntax is correct, but I think you use the wrong rule here. Shouldn't it be just no-unused-vars, without the vue part.
rules:
'no-unused-vars': 'off'
},
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
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 or to participate in this conversation.