You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 throw vue/no-ref-as-operand error, vue/no-ref-as-operand only lint left identifier of a logicalExpression
What actually happened?
eslint don't throw vue/no-ref-as-operand error, and
Repository to reproduce this issue
The text was updated successfully, but these errors were encountered:
Maybe put the logic for this rule in a separate no-ref-as-operand-strict rule, or customize with a parameter (strictCheck) of the current one?
In my code there are no cases of the following type
Checklist
Tell us about your environment
Please show your full configuration:
What did you do?
const myRef = ref(0); const a = true; if (a && myRef) { // do something }
What did you expect to happen?
myRef will throw
vue/no-ref-as-operand
error,vue/no-ref-as-operand
only lint left identifier of a logicalExpressionWhat actually happened?
eslint don't throw
vue/no-ref-as-operand
error, andRepository to reproduce this issue
The text was updated successfully, but these errors were encountered: