Browse Source

fix: apply 'no-constant-binary-expression' rule

Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
pull/15227/head
Maksim Sukharev 6 months ago
parent
commit
f28ca227af
  1. 1
      eslint.config.mjs
  2. 2
      src/components/MessagesList/MessagesGroup/Message/MessagePart/Mention.vue

1
eslint.config.mjs

@ -29,7 +29,6 @@ export default [
'jsdoc/require-param-description': 'off', // need to respect JS
'jsdoc/tag-lines': 'off', // need to respect JS
'no-console': 'off', // non-fixable
'no-constant-binary-expression': 'off', // non-fixable
'no-constant-condition': 'off', // non-fixable
'no-empty': 'off', // non-fixable
'no-redeclare': 'off', // non-fixable

2
src/components/MessagesList/MessagesGroup/Message/MessagePart/Mention.vue

@ -148,7 +148,7 @@ export default {
},
mounted() {
this.size = parseInt(window.getComputedStyle(this.$refs.mention).fontSize, 10) * 4 / 3 ?? 20
this.size = parseInt(window.getComputedStyle(this.$refs.mention).fontSize ?? 15, 10) * 4 / 3
},
}
</script>

Loading…
Cancel
Save