1 | import Vue from 'vue' |
||
2 | |||
3 | const ignoreWarnMessage = 'The .native modifier for v-on is only valid on components but it was used on <svg>.' |
||
4 | Vue.config.warnHandler = (msg, vm, trace) => { |
||
0 ignored issues
–
show
|
|||
5 | if (msg === ignoreWarnMessage) { |
||
6 | msg = null |
||
0 ignored issues
–
show
|
|||
7 | vm = null |
||
0 ignored issues
–
show
|
|||
8 | trace = null |
||
0 ignored issues
–
show
|
|||
9 | } |
||
10 | } |
||
11 |
This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.