eslint-plugin-strict-eg-rulez 2.1.0 → 2.1.2

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.ts CHANGED
@@ -37,45 +37,4 @@ export declare const configs: {
37
37
  'eg-rules/no-test-attrs': string;
38
38
  };
39
39
  };
40
- 'flat/recommended': {
41
- plugins: {
42
- 'eg-rules': {
43
- rules: {
44
- 'api-type-suffix': import("@typescript-eslint/utils/dist/ts-eslint").RuleModule<"invalidSuffix" | "consecutiveSuffix", [{
45
- suffixes?: string[];
46
- }], unknown, import("@typescript-eslint/utils/dist/ts-eslint").RuleListener>;
47
- 'component-callback-naming': import("@typescript-eslint/utils/dist/ts-eslint").RuleModule<"invalidCallbackProp" | "pastTenseEvent" | "blacklistedEvent", [{
48
- allowPastTense?: boolean;
49
- blacklist?: string[];
50
- whitelist?: string[];
51
- }], unknown, import("@typescript-eslint/utils/dist/ts-eslint").RuleListener>;
52
- 'jsx-event-handler-naming': import("@typescript-eslint/utils/dist/ts-eslint").RuleModule<"missingHandlePrefix" | "strictMismatch", [{
53
- strict?: boolean;
54
- }], unknown, import("@typescript-eslint/utils/dist/ts-eslint").RuleListener>;
55
- 'functions-naming': import("@typescript-eslint/utils/dist/ts-eslint").RuleModule<"missingRenderPrefix" | "missingBooleanPrefix" | "missingValuePrefix", [], unknown, import("@typescript-eslint/utils/dist/ts-eslint").RuleListener>;
56
- 'boolean-prop-naming': import("@typescript-eslint/utils/dist/ts-eslint").RuleModule<"missingPrefix", [{
57
- prefixes?: string[];
58
- }], unknown, import("@typescript-eslint/utils/dist/ts-eslint").RuleListener>;
59
- 'test-statement-match': import("@typescript-eslint/utils/dist/ts-eslint").RuleModule<"itMustStartWithShould" | "testMustContainConjunction", [{
60
- conjunctions?: string[];
61
- ignoreTestPatterns?: string[];
62
- }], unknown, import("@typescript-eslint/utils/dist/ts-eslint").RuleListener>;
63
- 'react-component-layout': import("eslint").Rule.RuleModule;
64
- 'no-test-attrs': import("@typescript-eslint/utils/dist/ts-eslint").RuleModule<"noTestAttr", [{
65
- attrs?: string[];
66
- }], unknown, import("@typescript-eslint/utils/dist/ts-eslint").RuleListener>;
67
- };
68
- };
69
- };
70
- rules: {
71
- 'eg-rules/api-type-suffix': string;
72
- 'eg-rules/component-callback-naming': string;
73
- 'eg-rules/jsx-event-handler-naming': string;
74
- 'eg-rules/functions-naming': string;
75
- 'eg-rules/boolean-prop-naming': string;
76
- 'eg-rules/test-statement-match': string;
77
- 'eg-rules/react-component-layout': string;
78
- 'eg-rules/no-test-attrs': string;
79
- };
80
- };
81
40
  };
package/dist/index.js CHANGED
@@ -35,13 +35,6 @@ const legacyRecommended = {
35
35
  'eg-rules/no-test-attrs': 'error',
36
36
  },
37
37
  };
38
- const flatRecommended = {
39
- plugins: {
40
- 'eg-rules': { rules: exports.rules },
41
- },
42
- rules: legacyRecommended.rules,
43
- };
44
38
  exports.configs = {
45
39
  recommended: legacyRecommended,
46
- 'flat/recommended': flatRecommended,
47
40
  };
@@ -1,7 +1,23 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const utils_1 = require("@typescript-eslint/utils");
4
- const defaultPrefixes = ['is', 'has', 'can', 'should', 'will', 'did', 'show', 'hide'];
4
+ const defaultPrefixes = [
5
+ 'is',
6
+ 'are',
7
+ 'was',
8
+ 'were',
9
+ 'has',
10
+ 'have',
11
+ 'had',
12
+ 'can',
13
+ 'could',
14
+ 'should',
15
+ 'would',
16
+ 'will',
17
+ 'did',
18
+ 'do',
19
+ 'does',
20
+ ];
5
21
  function hasBooleanPrefix(name, prefixes) {
6
22
  // Allow "is", "isReady" but not "isolate" where the next character is not capitalized.
7
23
  return prefixes.some((prefix) => name === prefix ||
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-strict-eg-rulez",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "description": "Custom ESLint rules for frontend",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -22,7 +22,7 @@
22
22
  "@types/node": "^25.3.2",
23
23
  "@typescript-eslint/parser": "^8.56.1",
24
24
  "@typescript-eslint/rule-tester": "^8.56.1",
25
- "eslint": "^9.39.3",
25
+ "eslint": "^8.57.0",
26
26
  "typescript": "^5.9.3",
27
27
  "vitest": "^3.2.4"
28
28
  },
@@ -30,6 +30,6 @@
30
30
  "dist"
31
31
  ],
32
32
  "dependencies": {
33
- "@typescript-eslint/utils": "^8.56.1"
33
+ "@typescript-eslint/utils": "^7.18.0"
34
34
  }
35
35
  }