Skip to content

Commit

Permalink
update dependencies and linting settings
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Dec 18, 2021
1 parent 064d140 commit 185033c
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .eslintrc.js
Expand Up @@ -355,6 +355,8 @@ const base = {
'prefer-destructuring': ERROR,
// prefer the exponentiation operator over `Math.pow()`
'prefer-exponentiation-operator': ERROR,
// prefer `Object.hasOwn`
'prefer-object-has-own': ERROR,
// require template literals instead of string concatenation
'prefer-template': ERROR,
// disallow generator functions that do not have `yield`
Expand Down Expand Up @@ -650,6 +652,8 @@ const es3 = {
'prefer-destructuring': OFF,
// prefer the exponentiation operator over `Math.pow()`
'prefer-exponentiation-operator': OFF,
// prefer `Object.hasOwn`
'prefer-object-has-own': OFF,
// require template literals instead of string concatenation
'prefer-template': OFF,
// require or disallow use of quotes around object literal property names
Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -34,13 +34,13 @@
"core-js-pure": "file:./packages/core-js-pure",
"david": "^12.0.0",
"es-observable": "git+https://github.com/tc39/proposal-observable.git#d3404f06bc70c7c578a5047dfb3dc813730e3319",
"eslint": "^8.4.1",
"eslint": "^8.5.0",
"eslint-plugin-es": "git+https://github.com/mysticatea/eslint-plugin-es.git#00d73851793541dc7b0d07292deb0ca2bc8a25e1",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-jsonc": "^2.0.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-qunit": "^7.1.0",
"eslint-plugin-qunit": "^7.2.0",
"eslint-plugin-regexp": "^1.5.1",
"eslint-plugin-sonarjs": "~0.11.0",
"eslint-plugin-unicorn": "^39.0.0",
Expand Down
2 changes: 1 addition & 1 deletion tests/tests/es.regexp.dot-all.js
Expand Up @@ -26,7 +26,7 @@ if (DESCRIPTORS) {
assert.avoid('.dotAll getter works on instances');
}

assert.true(Object.hasOwnProperty.call(RegExp.prototype, 'dotAll'), 'prototype has .dotAll property');
assert.true(Object.hasOwn(RegExp.prototype, 'dotAll'), 'prototype has .dotAll property');
}
});
}
2 changes: 1 addition & 1 deletion tests/tests/es.regexp.sticky.js
Expand Up @@ -29,7 +29,7 @@ if (DESCRIPTORS) {
assert.avoid('.sticky getter works on instances');
}

assert.true(Object.hasOwnProperty.call(RegExp.prototype, 'sticky'), 'prototype has .sticky property');
assert.true(Object.hasOwn(RegExp.prototype, 'sticky'), 'prototype has .sticky property');
// relaxed for early implementations
// assert.same(RegExp.prototype.sticky, undefined, '.sticky is undefined on prototype');
}
Expand Down
2 changes: 1 addition & 1 deletion tests/tests/es.symbol.description.js
Expand Up @@ -11,7 +11,7 @@ QUnit.test('Symbol#description', assert => {
assert.same(Object(Symbol('foo')).description, 'foo');
assert.same(Object(Symbol()).description, undefined);
if (DESCRIPTORS) {
assert.false(Object.prototype.hasOwnProperty.call(Symbol('foo'), 'description'));
assert.false(Object.hasOwn(Symbol('foo'), 'description'));
const descriptor = Object.getOwnPropertyDescriptor(Symbol.prototype, 'description');
assert.false(descriptor.enumerable);
assert.true(descriptor.configurable);
Expand Down

0 comments on commit 185033c

Please sign in to comment.