Tell us about your environment
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
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/)
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!
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/)