@next/eslint-plugin-next 14.0.5-canary.8 → 14.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/utils/get-root-dirs.js +2 -41
- package/package.json +2 -3
|
@@ -8,52 +8,13 @@ Object.defineProperty(exports, "getRootDirs", {
|
|
|
8
8
|
return getRootDirs;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
var _glob =
|
|
12
|
-
function _getRequireWildcardCache(nodeInterop) {
|
|
13
|
-
if (typeof WeakMap !== "function") return null;
|
|
14
|
-
var cacheBabelInterop = new WeakMap();
|
|
15
|
-
var cacheNodeInterop = new WeakMap();
|
|
16
|
-
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
17
|
-
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
18
|
-
})(nodeInterop);
|
|
19
|
-
}
|
|
20
|
-
function _interop_require_wildcard(obj, nodeInterop) {
|
|
21
|
-
if (!nodeInterop && obj && obj.__esModule) {
|
|
22
|
-
return obj;
|
|
23
|
-
}
|
|
24
|
-
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
25
|
-
return {
|
|
26
|
-
default: obj
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
var cache = _getRequireWildcardCache(nodeInterop);
|
|
30
|
-
if (cache && cache.has(obj)) {
|
|
31
|
-
return cache.get(obj);
|
|
32
|
-
}
|
|
33
|
-
var newObj = {};
|
|
34
|
-
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
35
|
-
for(var key in obj){
|
|
36
|
-
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
37
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
38
|
-
if (desc && (desc.get || desc.set)) {
|
|
39
|
-
Object.defineProperty(newObj, key, desc);
|
|
40
|
-
} else {
|
|
41
|
-
newObj[key] = obj[key];
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
newObj.default = obj;
|
|
46
|
-
if (cache) {
|
|
47
|
-
cache.set(obj, newObj);
|
|
48
|
-
}
|
|
49
|
-
return newObj;
|
|
50
|
-
}
|
|
11
|
+
var _glob = require("glob");
|
|
51
12
|
/**
|
|
52
13
|
* Process a Next.js root directory glob.
|
|
53
14
|
*/ var processRootDir = function(rootDir) {
|
|
54
15
|
// Ensures we only match folders.
|
|
55
16
|
if (!rootDir.endsWith("/")) rootDir += "/";
|
|
56
|
-
return _glob.
|
|
17
|
+
return (0, _glob.globSync)(rootDir);
|
|
57
18
|
};
|
|
58
19
|
var getRootDirs = function(context) {
|
|
59
20
|
var rootDirs = [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next/eslint-plugin-next",
|
|
3
|
-
"version": "14.0
|
|
3
|
+
"version": "14.1.0",
|
|
4
4
|
"description": "ESLint plugin for Next.js.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"license": "MIT",
|
|
@@ -12,10 +12,9 @@
|
|
|
12
12
|
"dist"
|
|
13
13
|
],
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"glob": "
|
|
15
|
+
"glob": "10.3.10"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@types/glob": "7.1.1",
|
|
19
18
|
"eslint": "7.24.0"
|
|
20
19
|
},
|
|
21
20
|
"scripts": {
|