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

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

Closed
ielgnaw opened this issue Mar 1, 2019 · 1 comment
Closed

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

ielgnaw opened this issue Mar 1, 2019 · 1 comment

Comments

@ielgnaw
Copy link

ielgnaw commented Mar 1, 2019

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

@ielgnaw
Copy link
Author

ielgnaw commented Mar 1, 2019

sorry, It's #794

@ielgnaw ielgnaw closed this as completed Mar 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant