July 2020 (version 1.39.0)
1.39.0 Update
Welcome to the new DeepScan updates! We hope that you are doing well in the current public health crisis.
Please kindly go ahead with the highlights for the latest release.
New Rules
The following Vue.js rules are introduced:
- VUE_DUPLICATE_SLOT - Do not use duplicate names in Vue slots
- VUE_MISMATCHED_COUNT_OF_ARGS - Do not call Vue APIs with the wrong number of arguments
- VUE_MISUSED_V_SLOT - Do not use an improper
v-slot
directive
ESLint Integration
The following plugins which are quite common in Vue projects are supported:
Analysis Improvements
- Support Vue
v-slot
directive - Support Vue dynamic directive argument
- Detect VUE_BAD_DIRECTIVE_FORMAT alarm when
v-on
without an argument has modifiers - Detect VUE_BAD_PROP_DECL alarm when an object is directly used as a default value
- Detect VUE_DUPLICATE_PROPERTY_IN_OPTION alarm for duplicate elements inside array-style
props
option - Detect VUE_MISMATCHED_TYPE_OF_ARG alarm for non-object first argument of
Vue.observable()
- Detect VUE_MISSING_CLEANUP_IN_LIFECYCLE alarm when handlers added at
activated()
lifecycle are not removed - Detect SYNTAX_ERROR alarm when multiple JS expressions connected with comma are used inside Vue template
Miscellaneous
- Do not detect VUE_BAD_COMPONENT_NAME alarm for Unicode letters
- Do not detect VUE_MISMATCHED_TYPE_OF_ARG alarm for
null
values if the argument is optional - Do not detect VUE_MISMATCHED_TYPE_OF_ARG alarm for the
undefined
value caused by a missing argument because it is now detected by VUE_MISMATCHED_COUNT_OF_ARGS rule
Bug Fixes
- A false alarm for VUE_DUPLICATE_PROPERTY_IN_OPTION may occur for options specified with arrays
- A false alarm for VUE_UNUSED_LOCAL_COMPONENT may occur if the root
<template>
has ansrc
attribute - Alarm location is incorrect for attribute values without quotes inside Vue template
- Alarm location and impact for VUE_DUPLICATE_ATTRIBUTE may be incorrect for
v-bind
directives with the same LHS parts - Analyzer may abnormally terminate when the overwriting assignments appear before UNUSED_VAR_ASSIGN alarms