Skip to content

Commit 5822467

Browse files
committed
[Dev Deps] update @ljharb/eslint-config, eslint
1 parent 76d0dee commit 5822467

5 files changed

Lines changed: 5 additions & 20 deletions

File tree

‎.eslintrc‎

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
"rules": {
77
"indent": [2, 2, {"SwitchCase": 2}],
8-
// "curly": [2, "multi-line"],
98
"handle-callback-err": [2, "^err"],
109
"valid-jsdoc": [2, {
1110
"requireReturn": false,
@@ -19,16 +18,8 @@
1918
"FunctionDeclaration": true
2019
}
2120
}],
22-
"no-redeclare": [2, { "builtinGlobals": true }],
23-
"no-shadow": [2, { "builtinGlobals": false, "hoist": "all" }],
24-
"no-use-before-define": [2, "nofunc"],
25-
"no-shadow-restricted-names": 2,
26-
"no-extra-semi": 2,
27-
"no-unused-vars": 2,
28-
"no-undef": 2,
2921
"strict": 0,
3022
"dot-notation": 0,
31-
"no-new": 0,
3223
"eqeqeq": 0,
3324

3425
"no-underscore-dangle": 0,
@@ -45,10 +36,4 @@
4536
"env": {
4637
"node": true
4738
},
48-
49-
"ignorePatterns": [
50-
"node_modules/*",
51-
"index.d.ts",
52-
"coverage",
53-
],
5439
}

‎lib/form_data.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ FormData.prototype.submit = function (params, cb) {
464464
request.removeListener('error', callback);
465465
request.removeListener('response', onResponse);
466466

467-
return cb.call(this, error, responce); // eslint-disable-line no-invalid-this
467+
return cb.call(this, error, responce);
468468
};
469469

470470
onResponse = callback.bind(this, null);

‎package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@
4747
"mime-types": "^2.1.12"
4848
},
4949
"devDependencies": {
50-
"@ljharb/eslint-config": "^21.2.0",
50+
"@ljharb/eslint-config": "^21.4.0",
5151
"auto-changelog": "^2.5.0",
5252
"browserify": "^13.3.0",
5353
"browserify-istanbul": "^2.0.0",
5454
"coveralls": "^3.1.1",
5555
"cross-spawn": "^6.0.6",
56-
"eslint": "=8.8.0",
56+
"eslint": "^8.57.1",
5757
"fake": "^0.2.2",
5858
"far": "^0.0.7",
5959
"formidable": "^1.2.6",

‎test/integration/test-ranged-filestream.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ var testSubjects = {
4242
* @param {string} data - chunk of read data
4343
*/
4444
function readSizeAccumulator(data) {
45-
this.readSize += data.length; // eslint-disable-line no-invalid-this
45+
this.readSize += data.length;
4646
}
4747

4848
var server = http.createServer(function (req, res) {

‎test/run.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ if (process.env.running_under_istanbul) {
3838
* @param {string} chunk - partial output
3939
*/
4040
function onOutput(chunk) {
41-
if (this._verbose > 1) { // eslint-disable-line no-invalid-this
41+
if (this._verbose > 1) {
4242
process.stderr.write(chunk);
4343
} else {
4444
output += chunk;

0 commit comments

Comments
 (0)