Skip to content

Commit 697e1de

Browse files
committed
[Dev Deps] update eslint, @ljharb/eslint-config
1 parent 2a6290e commit 697e1de

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ var gOPD = Object.getOwnPropertyDescriptor;
77
var tryRegexExecCall = function tryRegexExec(value) {
88
try {
99
var lastIndex = value.lastIndex;
10-
value.lastIndex = 0;
10+
value.lastIndex = 0; // eslint-disable-line no-param-reassign
1111

1212
regexExec.call(value);
1313
return true;
1414
} catch (e) {
1515
return false;
1616
} finally {
17-
value.lastIndex = lastIndex;
17+
value.lastIndex = lastIndex; // eslint-disable-line no-param-reassign
1818
}
1919
};
2020
var toStr = Object.prototype.toString;

package.json

+5-6
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@
1111
"scripts": {
1212
"pretest": "npm run lint",
1313
"test": "npm run tests-only",
14-
"tests-only": "node --harmony --es-staging test.js",
14+
"tests-only": "node --harmony --es-staging test",
1515
"posttest": "npx aud",
16-
"coverage": "covert test.js",
17-
"coverage-quiet": "covert test.js --quiet",
18-
"lint": "eslint test.js *.js",
16+
"coverage": "covert test/index.js",
17+
"lint": "eslint .",
1918
"eccheck": "eclint check *.js **/*.js > /dev/null",
2019
"version": "auto-changelog && git add CHANGELOG.md",
2120
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
@@ -40,11 +39,11 @@
4039
"has": "^1.0.3"
4140
},
4241
"devDependencies": {
43-
"@ljharb/eslint-config": "^14.1.0",
42+
"@ljharb/eslint-config": "^15.0.2",
4443
"auto-changelog": "^1.16.2",
4544
"covert": "^1.1.1",
4645
"eclint": "^2.8.1",
47-
"eslint": "^6.4.0",
46+
"eslint": "^6.6.0",
4847
"replace": "^1.1.1",
4948
"semver": "^6.3.0",
5049
"tape": "^4.11.0"

test.js renamed to test/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

33
var test = require('tape');
4-
var isRegex = require('./');
4+
var isRegex = require('..');
55
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
66

77
test('not regexes', function (t) {

0 commit comments

Comments
 (0)