Closed
Description
Tell us about your environment
- ESLint Version: 4.18.1
- eslint-plugin-vue Version: 4.2.2, 4.3.0
- Node Version: 8.7.0
Please show your full configuration:
module.exports = {
parserOptions: {
parser: 'babel-eslint',
ecmaVersion: 6,
sourceType: 'module',
ecmaFeatures: {
experimentalObjectRestSpread: true,
},
},
env: {
browser: true,
},
plugins: [
'vue'
],
extends: [
'plugin:vue/base',
],
rules: {
},
overrides: [
{
files: ['*.vue'],
rules: {
'indent': 'off',
'vue/script-indent': ['error', 4, {
baseIndent: 1,
switchCase: 2,
}],
},
},
],
};
What did you do? Please include the actual source code causing the issue.
<script>
function test() {
const variable = 0;
if (variable === 0) {
console.info('wrong indentation reported');
}
}
test();
</script>
What did you expect to happen?
No errors.
What actually happened? Please include the actual, raw output from ESLint.
On the if
line it throws Expected indentation of 26 spaces but found 8 spaces
. Everything worked fine until today after updating the package. After downgrading to 4.2.2 the problem still exists so it's a dependency problem?
Metadata
Metadata
Assignees
Labels
No labels