Skip to content

Commit

Permalink
[Dev Deps] update eslint, @ljharb/eslint-config, covert, has,…
Browse files Browse the repository at this point in the history
… `tape`
  • Loading branch information
ljharb committed Dec 14, 2019
1 parent 1e53e85 commit 13a9fc9
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 15 deletions.
11 changes: 10 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,14 @@
"no-extend-native": [2, { "exceptions": ["RegExp"] }],
"no-invalid-regexp": [2, { "allowConstructorFlags": ["s", "u", "y"] }],
"no-invalid-this": 0
}
},

"overrides": [
{
"files": "test/**",
"rules": {
"max-lines-per-function": 0,
},
},
],
}
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@
},
"devDependencies": {
"@es-shims/api": "^2.1.2",
"@ljharb/eslint-config": "^12.2.1",
"covert": "^1.1.0",
"@ljharb/eslint-config": "^15.0.2",
"covert": "^1.1.1",
"eclint": "^2.8.1",
"eslint": "^4.9.0",
"has": "^1.0.1",
"tape": "^4.8.0"
"eslint": "^6.7.2",
"has": "^1.0.3",
"tape": "^4.11.0"
},
"testling": {
"files": "test/index.js",
Expand Down
2 changes: 1 addition & 1 deletion polyfill.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = function getPolyfill() {
if (!supportsDescriptors) {
throw new TypeErr('RegExp.prototype.flags requires a true ES5 environment that supports property descriptors');
}
if (/a/mig.flags === 'gim') {
if ((/a/mig).flags === 'gim') {
var descriptor = gOPD(RegExp.prototype, 'flags');
if (descriptor && typeof descriptor.get === 'function' && typeof (/a/).dotAll === 'boolean') {
return descriptor.get;
Expand Down
8 changes: 0 additions & 8 deletions test/.eslintrc

This file was deleted.

0 comments on commit 13a9fc9

Please sign in to comment.