@eslint-react/kit 1.38.1-next.0 → 1.38.1-next.1

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.d.mts CHANGED
@@ -59,9 +59,6 @@ type RuleFeature = "CFG" | "DBG" | "FIX" | "MOD" | "TSC" | "EXP";
59
59
  */
60
60
  declare function createReport<MessageID extends string>(context: RuleContext): (descriptor: _ | null | ReportDescriptor<MessageID>) => void;
61
61
 
62
- declare function isInEditorEnv(): boolean;
63
- declare function isInGitHooksOrLintStaged(): boolean;
64
-
65
62
  /**
66
63
  * Convert a string to the `RegExp`.
67
64
  * Normal strings (e.g. `"foo"`) is converted to `/^foo$/` of `RegExp`.
@@ -80,4 +77,4 @@ declare function toRegExp(string: string): {
80
77
  */
81
78
  declare function isRegExp(string: string): boolean;
82
79
 
83
- export { REACT_BUILD_IN_HOOKS, RE_CAMEL_CASE, RE_CONSTANT_CASE, RE_JAVASCRIPT_PROTOCOL, RE_KEBAB_CASE, RE_PASCAL_CASE, RE_SNAKE_CASE, type RuleContext, type RuleDeclaration, type RuleFeature, type RulePreset, type RuleSeverity, createReport, isInEditorEnv, isInGitHooksOrLintStaged, isRegExp, toRegExp };
80
+ export { REACT_BUILD_IN_HOOKS, RE_CAMEL_CASE, RE_CONSTANT_CASE, RE_JAVASCRIPT_PROTOCOL, RE_KEBAB_CASE, RE_PASCAL_CASE, RE_SNAKE_CASE, type RuleContext, type RuleDeclaration, type RuleFeature, type RulePreset, type RuleSeverity, createReport, isRegExp, toRegExp };
package/dist/index.d.ts CHANGED
@@ -59,9 +59,6 @@ type RuleFeature = "CFG" | "DBG" | "FIX" | "MOD" | "TSC" | "EXP";
59
59
  */
60
60
  declare function createReport<MessageID extends string>(context: RuleContext): (descriptor: _ | null | ReportDescriptor<MessageID>) => void;
61
61
 
62
- declare function isInEditorEnv(): boolean;
63
- declare function isInGitHooksOrLintStaged(): boolean;
64
-
65
62
  /**
66
63
  * Convert a string to the `RegExp`.
67
64
  * Normal strings (e.g. `"foo"`) is converted to `/^foo$/` of `RegExp`.
@@ -80,4 +77,4 @@ declare function toRegExp(string: string): {
80
77
  */
81
78
  declare function isRegExp(string: string): boolean;
82
79
 
83
- export { REACT_BUILD_IN_HOOKS, RE_CAMEL_CASE, RE_CONSTANT_CASE, RE_JAVASCRIPT_PROTOCOL, RE_KEBAB_CASE, RE_PASCAL_CASE, RE_SNAKE_CASE, type RuleContext, type RuleDeclaration, type RuleFeature, type RulePreset, type RuleSeverity, createReport, isInEditorEnv, isInGitHooksOrLintStaged, isRegExp, toRegExp };
80
+ export { REACT_BUILD_IN_HOOKS, RE_CAMEL_CASE, RE_CONSTANT_CASE, RE_JAVASCRIPT_PROTOCOL, RE_KEBAB_CASE, RE_PASCAL_CASE, RE_SNAKE_CASE, type RuleContext, type RuleDeclaration, type RuleFeature, type RulePreset, type RuleSeverity, createReport, isRegExp, toRegExp };
package/dist/index.js CHANGED
@@ -36,20 +36,6 @@ function createReport(context) {
36
36
  };
37
37
  }
38
38
 
39
- // src/env.ts
40
- function isInEditorEnv() {
41
- if (process.env["CI"]) {
42
- return false;
43
- }
44
- if (isInGitHooksOrLintStaged()) {
45
- return false;
46
- }
47
- return !!(process.env["VSCODE_PID"] || process.env["VSCODE_CWD"] || process.env["JETBRAINS_IDE"] || process.env["VIM"] || process.env["NVIM"]);
48
- }
49
- function isInGitHooksOrLintStaged() {
50
- return !!(process.env["GIT_PARAMS"] || process.env["VSCODE_GIT_COMMAND"] || process.env["npm_lifecycle_script"]?.startsWith("lint-staged"));
51
- }
52
-
53
39
  // src/regexp.ts
54
40
  var RE_REGEXP_STR = /^\/(.+)\/([A-Za-z]*)$/u;
55
41
  function toRegExp(string) {
@@ -69,7 +55,5 @@ exports.RE_KEBAB_CASE = RE_KEBAB_CASE;
69
55
  exports.RE_PASCAL_CASE = RE_PASCAL_CASE;
70
56
  exports.RE_SNAKE_CASE = RE_SNAKE_CASE;
71
57
  exports.createReport = createReport;
72
- exports.isInEditorEnv = isInEditorEnv;
73
- exports.isInGitHooksOrLintStaged = isInGitHooksOrLintStaged;
74
58
  exports.isRegExp = isRegExp;
75
59
  exports.toRegExp = toRegExp;
package/dist/index.mjs CHANGED
@@ -34,20 +34,6 @@ function createReport(context) {
34
34
  };
35
35
  }
36
36
 
37
- // src/env.ts
38
- function isInEditorEnv() {
39
- if (process.env["CI"]) {
40
- return false;
41
- }
42
- if (isInGitHooksOrLintStaged()) {
43
- return false;
44
- }
45
- return !!(process.env["VSCODE_PID"] || process.env["VSCODE_CWD"] || process.env["JETBRAINS_IDE"] || process.env["VIM"] || process.env["NVIM"]);
46
- }
47
- function isInGitHooksOrLintStaged() {
48
- return !!(process.env["GIT_PARAMS"] || process.env["VSCODE_GIT_COMMAND"] || process.env["npm_lifecycle_script"]?.startsWith("lint-staged"));
49
- }
50
-
51
37
  // src/regexp.ts
52
38
  var RE_REGEXP_STR = /^\/(.+)\/([A-Za-z]*)$/u;
53
39
  function toRegExp(string) {
@@ -59,4 +45,4 @@ function isRegExp(string) {
59
45
  return Boolean(RE_REGEXP_STR.test(string));
60
46
  }
61
47
 
62
- export { REACT_BUILD_IN_HOOKS, RE_CAMEL_CASE, RE_CONSTANT_CASE, RE_JAVASCRIPT_PROTOCOL, RE_KEBAB_CASE, RE_PASCAL_CASE, RE_SNAKE_CASE, createReport, isInEditorEnv, isInGitHooksOrLintStaged, isRegExp, toRegExp };
48
+ export { REACT_BUILD_IN_HOOKS, RE_CAMEL_CASE, RE_CONSTANT_CASE, RE_JAVASCRIPT_PROTOCOL, RE_KEBAB_CASE, RE_PASCAL_CASE, RE_SNAKE_CASE, createReport, isRegExp, toRegExp };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/kit",
3
- "version": "1.38.1-next.0",
3
+ "version": "1.38.1-next.1",
4
4
  "description": "ESLint React's Plugin Kit for building plugins and rules.",
5
5
  "homepage": "https://github.com/Rel1cx/eslint-react",
6
6
  "bugs": {
@@ -37,7 +37,7 @@
37
37
  "dependencies": {
38
38
  "@typescript-eslint/utils": "^8.28.0",
39
39
  "ts-pattern": "^5.6.2",
40
- "@eslint-react/eff": "1.38.1-next.0"
40
+ "@eslint-react/eff": "1.38.1-next.1"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@tsconfig/node22": "^22.0.1",