We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
prefer-object-has-own
1 parent 445322d commit 38bc026Copy full SHA for 38bc026
packages/eslint-config-airbnb-base/rules/best-practices.js
@@ -376,6 +376,11 @@ module.exports = {
376
// https://eslint.org/docs/rules/prefer-named-capture-group
377
'prefer-named-capture-group': 'off',
378
379
+ // Prefer Object.hasOwn() over Object.prototype.hasOwnProperty.call()
380
+ // https://eslint.org/docs/rules/prefer-object-has-own
381
+ // TODO: semver-major: enable thus rule, once eslint v8.5.0 is required
382
+ 'prefer-object-has-own': 'off',
383
+
384
// https://eslint.org/docs/rules/prefer-regex-literals
385
'prefer-regex-literals': ['error', {
386
disallowRedundantWrapping: true,
0 commit comments