eslint-plugin-turbo 0.0.5 → 0.0.7
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/index.js +11 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -4810,6 +4810,15 @@ var meta = {
|
|
|
4810
4810
|
}
|
|
4811
4811
|
]
|
|
4812
4812
|
};
|
|
4813
|
+
function normalizeCwd(cwd) {
|
|
4814
|
+
if (cwd) {
|
|
4815
|
+
return cwd;
|
|
4816
|
+
}
|
|
4817
|
+
if (typeof process === "object") {
|
|
4818
|
+
return process.cwd();
|
|
4819
|
+
}
|
|
4820
|
+
return void 0;
|
|
4821
|
+
}
|
|
4813
4822
|
function create(context) {
|
|
4814
4823
|
var _a, _b;
|
|
4815
4824
|
const { options } = context;
|
|
@@ -4822,9 +4831,10 @@ function create(context) {
|
|
|
4822
4831
|
console.error(`Unable to convert "${allowed}" to regex`);
|
|
4823
4832
|
}
|
|
4824
4833
|
});
|
|
4834
|
+
const cwd = normalizeCwd(context.getCwd ? context.getCwd() : void 0);
|
|
4825
4835
|
const turboConfig = (_b = options == null ? void 0 : options[0]) == null ? void 0 : _b.turboConfig;
|
|
4826
4836
|
const turboVars = getEnvVarDependencies_default({
|
|
4827
|
-
cwd
|
|
4837
|
+
cwd,
|
|
4828
4838
|
turboConfig
|
|
4829
4839
|
});
|
|
4830
4840
|
if (!turboVars) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-turbo",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"description": "ESLint plugin for Turborepo",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"turbo",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"typescript": "^4.7.4"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"eslint": "
|
|
40
|
+
"eslint": ">6.6.0"
|
|
41
41
|
},
|
|
42
42
|
"license": "MPL-2.0",
|
|
43
43
|
"scripts": {
|