@jsse/eslint-config 0.8.1 → 0.8.3
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/CHANGELOG.md +12 -0
- package/README.md +22 -17
- package/dist/cli.js +12859 -611
- package/dist/{const-1mb8msxs.js → const-BGD6_tOf.js} +19 -9
- package/dist/index.d.ts +402 -322
- package/dist/index.js +8085 -7983
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +20 -17
|
@@ -1,19 +1,29 @@
|
|
|
1
1
|
import process from "node:process";
|
|
2
2
|
//#region src/_generated/version.ts
|
|
3
|
-
const VERSION = "0.8.
|
|
3
|
+
const VERSION = "0.8.3";
|
|
4
4
|
//#endregion
|
|
5
5
|
//#region src/const.ts
|
|
6
6
|
/**
|
|
7
7
|
* CONSTANTS LISTS AND REFERENCES OH MY!
|
|
8
8
|
*/
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
const isEnvDebug = () => {
|
|
10
|
+
return [
|
|
11
|
+
"DEBUG",
|
|
12
|
+
"JSSE_DEBUG",
|
|
13
|
+
"JSSEDEBUG"
|
|
14
|
+
].some((env) => {
|
|
15
|
+
const value = process.env[env];
|
|
16
|
+
return [
|
|
17
|
+
"1",
|
|
18
|
+
"true",
|
|
19
|
+
"t",
|
|
20
|
+
"on",
|
|
21
|
+
"yes",
|
|
22
|
+
"y"
|
|
23
|
+
].includes(value ?? "");
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
const DEBUG = isEnvDebug();
|
|
17
27
|
const SLOW_RULES = [
|
|
18
28
|
"@typescript-eslint/no-misused-promises",
|
|
19
29
|
"@typescript-eslint/no-redeclare",
|