Skip to content

Commit 6f8d3c4

Browse files
committed
[Dev Deps] update eslint
1 parent 2e23786 commit 6f8d3c4

File tree

7 files changed

+10
-18
lines changed

7 files changed

+10
-18
lines changed

.eslintrc

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
{
2-
"extends": "@ljharb",
3-
42
"root": true,
53

4+
"extends": "@ljharb",
5+
66
"rules": {
7-
"array-bracket-newline": 0,
8-
"array-element-newline": 0,
97
"indent": [2, 4],
108
"strict": 0,
119
"complexity": 0,
@@ -14,19 +12,16 @@
1412
"dot-notation": [2, { "allowKeywords": true }],
1513
"func-name-matching": 0,
1614
"func-style": 0,
17-
"global-require": 0,
15+
"global-require": 1,
1816
"id-length": [2, { "min": 1, "max": 30 }],
1917
"max-lines-per-function": 0,
2018
"max-nested-callbacks": 0,
2119
"max-params": 0,
2220
"max-statements-per-line": [2, { "max": 2 }],
2321
"max-statements": 0,
2422
"no-magic-numbers": 0,
25-
"no-console": 0,
2623
"no-shadow": 0,
27-
"no-unused-vars": [2, { "vars": "all", "args": "none" }],
2824
"no-use-before-define": 0,
29-
"object-curly-newline": 0,
3025
"sort-keys": 0,
3126
},
3227
"overrides": [
@@ -58,6 +53,7 @@
5853
"dot-notation": [2, { "allowPattern": "throws" }],
5954
"max-lines": 0,
6055
"max-lines-per-function": 0,
56+
"no-unused-vars": [2, { "vars": "all", "args": "none" }],
6157
},
6258
},
6359
],

lib/node-modules-paths.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
var path = require('path');
2-
var parse = path.parse || require('path-parse');
2+
var parse = path.parse || require('path-parse'); // eslint-disable-line global-require
33

44
var getNodeModulesDirs = function getNodeModulesDirs(absoluteStart, modules) {
55
var prefix = '/';

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"array.prototype.map": "^1.0.4",
3434
"aud": "^1.1.5",
3535
"eclint": "^2.8.1",
36-
"eslint": "^8.5.0",
36+
"eslint": "^8.6.0",
3737
"in-publish": "^2.0.1",
3838
"object-keys": "^1.1.1",
3939
"safe-publish-latest": "^2.0.0",

test/.eslintrc

Lines changed: 0 additions & 5 deletions
This file was deleted.

test/node_path.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ test('$NODE_PATH', function (t) {
6363
basedir: path.join(__dirname, 'node_path/x'),
6464
isDirectory: isDir
6565
}, function (err, res) {
66-
var root = require('tap/package.json').main;
66+
var root = require('tap/package.json').main; // eslint-disable-line global-require
6767
t.error(err);
6868
t.equal(res, path.resolve(__dirname, '..', 'node_modules/tap', root), 'tap resolves');
6969
});

test/resolver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ test('without basedir', function (t) {
294294
t.plan(1);
295295

296296
var dir = path.join(__dirname, 'resolver/without_basedir');
297-
var tester = require(path.join(dir, 'main.js'));
297+
var tester = require(path.join(dir, 'main.js')); // eslint-disable-line global-require
298298

299299
tester(t, function (err, res, pkg) {
300300
if (err) {

test/resolver_sync.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
var path = require('path');
2+
var fs = require('fs');
23
var test = require('tape');
4+
35
var resolve = require('../');
46
var sync = require('../sync');
57

@@ -206,7 +208,6 @@ test('incorrect main', function (t) {
206208
});
207209

208210
var stubStatSync = function stubStatSync(fn) {
209-
var fs = require('fs');
210211
var statSync = fs.statSync;
211212
try {
212213
fs.statSync = function () {

0 commit comments

Comments
 (0)