eslint-plugin-strict-eg-rulez 1.0.2 → 2.0.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/index.d.ts CHANGED
@@ -37,4 +37,45 @@ 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
+ };
40
81
  };
package/dist/index.js CHANGED
@@ -22,18 +22,26 @@ exports.rules = {
22
22
  'react-component-layout': react_component_layout_1.reactComponentLayoutRule,
23
23
  'no-test-attrs': no_test_attrs_1.default,
24
24
  };
25
- exports.configs = {
26
- recommended: {
27
- plugins: ['eg-rules'],
28
- rules: {
29
- 'eg-rules/api-type-suffix': 'error',
30
- 'eg-rules/component-callback-naming': 'error',
31
- 'eg-rules/jsx-event-handler-naming': 'error',
32
- 'eg-rules/functions-naming': 'error',
33
- 'eg-rules/boolean-prop-naming': 'error',
34
- 'eg-rules/test-statement-match': 'error',
35
- 'eg-rules/react-component-layout': 'warn',
36
- 'eg-rules/no-test-attrs': 'error',
37
- },
25
+ const legacyRecommended = {
26
+ plugins: ['eg-rules'],
27
+ rules: {
28
+ 'eg-rules/api-type-suffix': 'error',
29
+ 'eg-rules/component-callback-naming': 'error',
30
+ 'eg-rules/jsx-event-handler-naming': 'error',
31
+ 'eg-rules/functions-naming': 'error',
32
+ 'eg-rules/boolean-prop-naming': 'error',
33
+ 'eg-rules/test-statement-match': 'error',
34
+ 'eg-rules/react-component-layout': 'warn',
35
+ 'eg-rules/no-test-attrs': 'error',
36
+ },
37
+ };
38
+ const flatRecommended = {
39
+ plugins: {
40
+ 'eg-rules': { rules: exports.rules },
38
41
  },
42
+ rules: legacyRecommended.rules,
43
+ };
44
+ exports.configs = {
45
+ recommended: legacyRecommended,
46
+ 'flat/recommended': flatRecommended,
39
47
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-strict-eg-rulez",
3
- "version": "1.0.2",
3
+ "version": "2.0.0",
4
4
  "description": "Custom ESLint rules for frontend",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",