Skip to content

Commit 0c0387f

Browse files
committed
[Deps] use object.hasown instead of has
1 parent 227e967 commit 0c0387f

11 files changed

+11
-11
lines changed

lib/rules/forbid-elements.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
'use strict';
77

8-
const has = require('has');
8+
const has = require('object.hasown/polyfill')();
99
const docsUrl = require('../util/docsUrl');
1010

1111
// ------------------------------------------------------------------------------

lib/rules/jsx-closing-bracket-location.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
'use strict';
77

8-
const has = require('has');
8+
const has = require('object.hasown/polyfill')();
99
const docsUrl = require('../util/docsUrl');
1010

1111
// ------------------------------------------------------------------------------

lib/rules/jsx-curly-spacing.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
'use strict';
1313

14-
const has = require('has');
14+
const has = require('object.hasown/polyfill')();
1515
const docsUrl = require('../util/docsUrl');
1616

1717
// ------------------------------------------------------------------------------

lib/rules/jsx-max-depth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
'use strict';
77

8-
const has = require('has');
8+
const has = require('object.hasown/polyfill')();
99
const includes = require('array-includes');
1010
const variableUtil = require('../util/variable');
1111
const jsxUtil = require('../util/jsx');

lib/rules/jsx-no-duplicate-props.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
'use strict';
77

8-
const has = require('has');
8+
const has = require('object.hasown/polyfill')();
99
const docsUrl = require('../util/docsUrl');
1010

1111
// ------------------------------------------------------------------------------

lib/rules/jsx-wrap-multilines.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
'use strict';
77

8-
const has = require('has');
8+
const has = require('object.hasown/polyfill')();
99
const docsUrl = require('../util/docsUrl');
1010
const jsxUtil = require('../util/jsx');
1111

lib/rules/no-array-index-key.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
'use strict';
77

8-
const has = require('has');
8+
const has = require('object.hasown/polyfill')();
99
const astUtil = require('../util/ast');
1010
const docsUrl = require('../util/docsUrl');
1111
const pragma = require('../util/pragma');

lib/rules/no-unknown-property.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
'use strict';
77

8-
const has = require('has');
8+
const has = require('object.hasown/polyfill')();
99
const docsUrl = require('../util/docsUrl');
1010
const versionUtil = require('../util/version');
1111

lib/rules/sort-comp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
'use strict';
77

8-
const has = require('has');
8+
const has = require('object.hasown/polyfill')();
99
const entries = require('object.entries');
1010
const arrayIncludes = require('array-includes');
1111

lib/rules/void-dom-elements-no-children.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
'use strict';
88

9-
const has = require('has');
9+
const has = require('object.hasown/polyfill')();
1010

1111
const Components = require('../util/Components');
1212
const docsUrl = require('../util/docsUrl');

0 commit comments

Comments
 (0)