Error: Do not access Object.prototype method #138
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
if I include PrimeVue components right into my project the compiler shows the following errors in
DataTable.vue
andTreeTable.vue
:It references the error to the following eslint rule https://eslint.org/docs/rules/no-prototype-builtins
If I replace the lines
this.filters.hasOwnProperty(xxx)
withObject.prototype.hasOwnProperty.call(this.filters, xxx)
the error goes away.The text was updated successfully, but these errors were encountered: