Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The code indent is not satisfied when I using annotation @Component #1887

Closed
jaune162 opened this issue Jul 18, 2018 · 1 comment
Closed

Comments

@jaune162
Copy link

Version

3.0.0-rc.5

Reproduction link

https://github.com/jaune162/vue-typescript-mdeditor

Steps to reproduce

<script lang="ts">
import {Vue, Component} from 'vue-property-decorator';
import {State, Getter} from 'vuex-class';
import GroupItem from './GroupItem';

@Component({
    components: {
        GroupItem
    }
})
export default class GroupList extends Vue {
    @State('notebook/groups') groups: any;

    created() {
    }
}

</script>

error info

@Component({
    components: {
        GroupItem // ESLint: Expected indentation of 4 spaces but found 8. (indent)
    }
})  // ESLint: Expected indentation of 4 spaces but found 0. (indent)

What is expected?

no indent error

What is actually happening?

The code in @Component parameter must indent of 4 space for every lines.


My .eslintrc.js

module.exports = {
    root: true,
    env: {
        node: true
    },
    'extends': [
        'plugin:vue/essential',
        '@vue/standard',
        '@vue/typescript'
    ],
    rules: {
        'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
        'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
    }
};
@Akryum Akryum added bug scope: eslint scope: typescript needs team repro We acknowledged your report and will soon try to reproduce it and removed needs team repro We acknowledged your report and will soon try to reproduce it bug labels Jul 18, 2018
@Akryum
Copy link
Member

Akryum commented Jul 18, 2018

Duplicate of #1672

@Akryum Akryum marked this as a duplicate of #1672 Jul 18, 2018
@Akryum Akryum closed this as completed Jul 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants