Skip to content

Definition for rule 'vue/dot-location' was not found #845

Closed
@ielgnaw

Description

@ielgnaw

Tell us about your environment

  • *ESLint version: 5.14.1
  • eslint-plugin-vue version: 5.2.2
  • Node version: 8.9.1

Please show your full configuration:

// http://eslint.org/docs/user-guide/configuring

module.exports = {
    root: true,
    // parser: 'babel-eslint',
    parserOptions: {
        parser: 'babel-eslint',
        sourceType: 'module'
    },
    env: {
        browser: true,
    },
    // https://github.com/standard/standard/blob/master/docs/RULES-en.md
    extends: [
        'plugin:vue/recommended',
        'standard'
    ],
    // required to lint *.vue files
    plugins: [
        'vue'
    ],
    globals: {
        NODE_ENV: true,
        SITE_URL: true
    },
    overrides: [
        {
            files: ['*.vue'],
            rules: {
                indent: 'off'
            }
        }
    ],
    // add your custom rules hered
    rules: {
        'indent': ['error', 4, {
            'SwitchCase': 1
        }],

        // https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/array-bracket-spacing.md
        'vue/array-bracket-spacing': ['error', 'never'],
        'array-bracket-spacing': ['error', 'never'],

        // https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/arrow-spacing.md
        'vue/arrow-spacing': ['error', {'before': true, 'after': true}],
        'arrow-spacing': ['error', {'before': true, 'after': true}],

        // https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/attribute-hyphenation.md
        'vue/attribute-hyphenation': ['error', 'always'],

        // https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/attributes-order.md
        // 'vue/attributes-order': ['error', {
        //     'order': [
        //         'DEFINITION',
        //         'LIST_RENDERING',
        //         'CONDITIONALS',
        //         'RENDER_MODIFIERS',
        //         'GLOBAL',
        //         'UNIQUE',
        //         'TWO_WAY_BINDING',
        //         'OTHER_DIRECTIVES',
        //         'OTHER_ATTR',
        //         'EVENTS',
        //         'CONTENT'
        //     ]
        // }],

        // https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/block-spacing.md
        'vue/block-spacing': ['error', 'never'],
        'block-spacing': ['error', 'never'],

        // https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/brace-style.md
        'vue/brace-style': ['error', 'stroustrup'],
        'brace-style': ['error', 'stroustrup'],

        // https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/camelcase.md
        'vue/camelcase': ['error', {'properties': 'always', allow: ['^backend_']}],
        'camelcase': ['error', {'properties': 'always', allow: ['^backend_']}],

        // https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/comma-dangle.md
        'vue/comma-dangle': ['error', 'never'],
        'comma-dangle': ['error', 'never'],

        // https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/comment-directive.md
        'vue/comment-directive': 1,

        // https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/component-name-in-template-casing.md
        'vue/component-name-in-template-casing': ['error', 'kebab-case', {
            'registeredComponentsOnly': false,
            'ignores': ['/^MyComponent/']
        }],

        // https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/dot-location.md
        'vue/dot-location': ['error', 'object'],
        'dot-location': ['error', 'object']
    }
}

What did you do?

<template>
    <div id="app" class="biz-app">
    </div>
</template>
<script>
    export default {
        name: 'app',
        data () {
            return {
            }
        },
        async created () {
            const obj = {
                backend_data: 1
            }
        },
        mounted () {
        },
        methods: {
        }
    }
</script>
<style>
</style>

What did you expect to happen?
No vue/dot-location mistakes.

What actually happened?

image

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