Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork685
Open
Labels
Description
Checklist
- I have tried restarting my IDE and the issue persists.
- I have read theFAQ and my problem is not listed.
Tell us about your environment
- ESLint version: v8.27.0
- eslint-plugin-vue version: v9.7.0
- Node version: v16.17.0
- Operating System: MacOS
Please show your full configuration:
module.exports={env:{browser:true,node:true,es6:true,},extends:['plugin:vue/recommended','eslint:recommended','@vue/eslint-config-typescript/recommended',],settings:{'import/resolver':{typescript:{directory:'tsconfig.json'},alias:{extensions:['.js','.jsx','.ts','.tsx','.vue'],map:[// for more custom alias config not included in tsconfig],},},},plugins:['import'],}
What did you do?
const myRef = ref(0);const a = true;if (a && myRef) { // do something}
What did you expect to happen?
myRef will throwvue/no-ref-as-operand
error,vue/no-ref-as-operand
only lint left identifier of a logicalExpression
What actually happened?
eslint don't throwvue/no-ref-as-operand
error, and
Repository to reproduce this issue