Skip to content

Incorrect multiline import indent #1524

Closed
@Djaler

Description

@Djaler

Checklist

  • I have tried restarting my IDE and the issue persists.
  • I have read the FAQ and my problem is not listed.

Tell us about your environment

  • ESLint version: 7.23.0
  • eslint-plugin-vue version: 7.12.0

Please show your full configuration:

module.exports = {
  extends: [
    'plugin:vue/recommended',
  ],
  plugins: ['vue'],
  rules: {
    'vue/script-indent': ['warn', 4, {
        baseIndent: 1,
        switchCase: 1,
    }],
  },
};

What did you do?

<script lang="ts">
    import {
        computed, defineComponent, PropType, ref, watch,
    } from '@vue/composition-api';

What did you expect to happen?
Nothing

What actually happened?
15:1 warning Expected indentation of 8 spaces but found 4 spaces vue/script-indent

Temporary workaround - add 'ImportDeclaration' to ignores option of vue/script-indent rule.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions