Eslint-plugin-vue: Definition for rule 'vue/dot-location' was not found

Created on 31 May 2019  路  9Comments  路  Source: vuejs/eslint-plugin-vue

Tell us about your environment

  • ESLint version: 5.16.0
  • eslint-plugin-vue version: 5.2.2
  • Node version: 10.13.0

Please show your full configuration:

module.exports = {
    parser: 'vue-eslint-parser',
    parserOptions: {
        parser: 'babel-eslint',
        ecmaVersion: 2019,
        sourceType: 'module',
        ecmaFeatures: {
            globalReturn: false,
            impliedStrict: true,
            jsx: true
        },
        requireConfigFile: false,
        allowImportExportEverywhere: false
    },
    plugins: ['vue'],
    env: {
        browser: true,
        node: true,
        commonjs: true,
        es6: true
    },
    root: true,
    rules: {
        'vue/dot-location': ['error', 'property'],
        'vue/keyword-spacing': [
            'error',
            {
                before: true,
                after: true
            }
        ],
        'vue/no-deprecated-scope-attribute': 'error',
        'vue/no-empty-pattern': 'error',
        'vue/script-indent': [
            'error',
            4,
            {
                switchCase: 1
            }
        ],
        'vue/v-slot-style': 'error',
        'vue/valid-v-slot': 'error'
    }
};

What did you do?

<template>
    <div>
    </div>
</template>

What did you expect to happen?

No errors

What actually happened?

1:1  error  Definition for rule 'vue/dot-location' was not found                   vue/dot-location
  1:1  error  Definition for rule 'vue/keyword-spacing' was not found                vue/keyword-spacing
  1:1  error  Definition for rule 'vue/no-deprecated-scope-attribute' was not found  vue/no-deprecated-scope-attribute
  1:1  error  Definition for rule 'vue/no-empty-pattern' was not found               vue/no-empty-pattern
  1:1  error  Definition for rule 'vue/v-slot-style' was not found                   vue/v-slot-style
  1:1  error  Definition for rule 'vue/valid-v-slot' was not found                   vue/valid-v-slot

Most helpful comment

Just checked the repository and can confirm that none of the "not found" error rules are included in 5.2.2.

Is there any way that added but not released rules could be held from the documentation until they officially get released? I think I spent at least an hour trying to figure out why the rules weren't working.

This page makes the rules appear that they are part of the current release... (https://eslint.vuejs.org/rules/)

All 9 comments

I don't think the last two are included in 5.2.2. However, the link to the rules are in the sidebar (but not in the table) at the following page (https://eslint.vuejs.org/rules/).

I confirmed in my project that the following rules produce the "was not found" error...

Definition for rule 'vue/dot-location' was not found (vue/dot-location)
Definition for rule 'vue/keyword-spacing' was not found (vue/keyword-spacing)
Definition for rule 'vue/no-deprecated-scope-attribute' was not found (vue/no-deprecated-scope-attribute)
Definition for rule 'vue/no-empty-pattern' was not found (vue/no-empty-pattern)

+1 I have the same issue while I'm developing eslint-config-xo-vue for the rules

Definition for rule vue/no-deprecated-scope-attribute was not found  vue/no-deprecated-scope-attribute
Definition for rule vue/dot-location was not found                   vue/dot-location
Definition for rule vue/keyword-spacing was not found                vue/keyword-spacing
Definition for rule vue/no-empty-pattern was not found               vue/no-empty-pattern

I am also having the same problem.

Definition for rule 'vue/dot-location' was not found (vue/dot-location)
Definition for rule 'vue/keyword-spacing' was not found (vue/keyword-spacing)
Definition for rule 'vue/no-deprecated-scope-attribute' was not found (vue/no-deprecated-scope-attribute)
Definition for rule 'vue/no-empty-pattern' was not found (vue/no-empty-pattern)

Hello.
The dot-location rule has not yet been released.
You can not use the dot-location rule using v5.2.2.

The same problem rules are probably not released.

Just checked the repository and can confirm that none of the "not found" error rules are included in 5.2.2.

Is there any way that added but not released rules could be held from the documentation until they officially get released? I think I spent at least an hour trying to figure out why the rules weren't working.

This page makes the rules appear that they are part of the current release... (https://eslint.vuejs.org/rules/)

@ota-meshi looks like dot-location has not been released yet. I can't find it in 5.2.3. I only see it in master. Is that correct?

I agree with @BrandonYeager, would be great if released rules could be marked in the docs to avoid confusion.

I also got into a problem because of no-deprecated-scope-attribute which is documented but not released yet. /cc @ota-meshi anything blocking next release? :D

A new version has been released. I close this issue.

Yay!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

soullivaneuh picture soullivaneuh  路  3Comments

filipalacerda picture filipalacerda  路  4Comments

maple-leaf picture maple-leaf  路  3Comments

nirazul picture nirazul  路  3Comments

armano2 picture armano2  路  4Comments