Skip to content

Commit

Permalink
[Dev Deps] update eslint, @ljharb/eslint-config
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Nov 20, 2019
1 parent 2a6290e commit 697e1de
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions index.js
Expand Up @@ -7,14 +7,14 @@ var gOPD = Object.getOwnPropertyDescriptor;
var tryRegexExecCall = function tryRegexExec(value) {
try {
var lastIndex = value.lastIndex;
value.lastIndex = 0;
value.lastIndex = 0; // eslint-disable-line no-param-reassign

regexExec.call(value);
return true;
} catch (e) {
return false;
} finally {
value.lastIndex = lastIndex;
value.lastIndex = lastIndex; // eslint-disable-line no-param-reassign
}
};
var toStr = Object.prototype.toString;
Expand Down
11 changes: 5 additions & 6 deletions package.json
Expand Up @@ -11,11 +11,10 @@
"scripts": {
"pretest": "npm run lint",
"test": "npm run tests-only",
"tests-only": "node --harmony --es-staging test.js",
"tests-only": "node --harmony --es-staging test",
"posttest": "npx aud",
"coverage": "covert test.js",
"coverage-quiet": "covert test.js --quiet",
"lint": "eslint test.js *.js",
"coverage": "covert test/index.js",
"lint": "eslint .",
"eccheck": "eclint check *.js **/*.js > /dev/null",
"version": "auto-changelog && git add CHANGELOG.md",
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
Expand All @@ -40,11 +39,11 @@
"has": "^1.0.3"
},
"devDependencies": {
"@ljharb/eslint-config": "^14.1.0",
"@ljharb/eslint-config": "^15.0.2",
"auto-changelog": "^1.16.2",
"covert": "^1.1.1",
"eclint": "^2.8.1",
"eslint": "^6.4.0",
"eslint": "^6.6.0",
"replace": "^1.1.1",
"semver": "^6.3.0",
"tape": "^4.11.0"
Expand Down
2 changes: 1 addition & 1 deletion test.js → test/index.js
@@ -1,7 +1,7 @@
'use strict';

var test = require('tape');
var isRegex = require('./');
var isRegex = require('..');
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';

test('not regexes', function (t) {
Expand Down

0 comments on commit 697e1de

Please sign in to comment.