fix: no-prototype-builtins
This commit is contained in:
Родитель
8942d3c14b
Коммит
d5f380d28a
|
@ -31,7 +31,6 @@ module.exports = {
|
|||
'no-empty': 'off',
|
||||
'no-ex-assign': 'off',
|
||||
'no-inner-declarations': 'off',
|
||||
'no-prototype-builtins': 'off',
|
||||
'no-useless-catch': 'off',
|
||||
'no-useless-escape': 'off',
|
||||
'prefer-const': 'off',
|
||||
|
|
|
@ -21,7 +21,7 @@ function redactRootPaths(view) {
|
|||
const path = process.cwd();
|
||||
if (typeof view === 'object') {
|
||||
for (let property in view) {
|
||||
if (view.hasOwnProperty(property)) {
|
||||
if (Object.prototype.hasOwnProperty.call(view, property)) {
|
||||
let value = view[property];
|
||||
if (typeof value === 'string') {
|
||||
view[property] = redactRootPathsFromString(value, path);
|
||||
|
|
Загрузка…
Ссылка в новой задаче