Closed
Description
Tell us about your environment
- ESLint version: 7.7
- eslint-plugin-vue version: 6.2.2
- Node version: 12
- Operating System: linux
Please show your full configuration:
/* eslint-disable quote-props */
module.exports = {
root: true,
env: {
node: true,
'cypress/globals': true
},
extends: [
'plugin:vue/essential',
'@vue/standard'
],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'vue/no-confusing-v-for-v-if': 'warn',
'vue/order-in-components': 'warn',
'vue/this-in-template': 'warn',
'vue/html-self-closing': 'warn',
'semi': ['error', 'always'],
'vue/script-indent': ['warn', 2, {
'baseIndent': 0
}],
'vue/attributes-order': ['warn', {
'order': [
'DEFINITION',
'LIST_RENDERING',
'CONDITIONALS',
'RENDER_MODIFIERS',
'GLOBAL',
'TWO_WAY_BINDING',
'EVENTS',
'CONTENT',
'UNIQUE',
'OTHER_DIRECTIVES',
'OTHER_ATTR'
],
'alphabetical': false
}],
'vuetify/no-deprecated-classes': 'error',
'vuetify/grid-unknown-attributes': 'warn',
'vuetify/no-legacy-grid': 'warn',
'no-prototype-builtins': 'off'
},
plugins: [
'vue',
'vuetify',
'cypress'
],
parserOptions: {
parser: 'babel-eslint'
}
};
What did you do?
Using the pipeline operator and babel
<template>
<span>{{ true |> boolean }}</span>
</template>
<script>
export default {
methods: {
boolean (v) {
return v ? 'yes' : 'no';
}
}
};
</script>
What did you expect to happen?
eslint should not complain.
What actually happened?
eslint complained.
{
...
"message": "[vue/no-deprecated-filter]\nFilters are deprecated.",
"source": "eslint-plugin-vue"
...
}
Repository to reproduce this issue
none