@sarj/eslint-plugin 1.0.1 → 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.
@@ -0,0 +1,115 @@
1
+ import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
2
+
3
+ declare const rules: {
4
+ "enforce-file-structure": _typescript_eslint_utils_ts_eslint.RuleModule<"incorrectOrder" | "useServerDirective", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
5
+ name: string;
6
+ };
7
+ "no-client-side-data-fetching": _typescript_eslint_utils_ts_eslint.RuleModule<"noClientFetch", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
8
+ name: string;
9
+ };
10
+ "no-enum": _typescript_eslint_utils_ts_eslint.RuleModule<"noEnum", readonly [{
11
+ ignoreFiles?: readonly string[];
12
+ }?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
13
+ name: string;
14
+ };
15
+ "no-raw-env": _typescript_eslint_utils_ts_eslint.RuleModule<"noRawEnv", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
16
+ name: string;
17
+ };
18
+ "no-unnecessary-use-client": _typescript_eslint_utils_ts_eslint.RuleModule<"unnecessaryUseClient", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
19
+ name: string;
20
+ };
21
+ "prefer-schema-for-api-payload": _typescript_eslint_utils_ts_eslint.RuleModule<"unparsedJsonAccess", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
22
+ name: string;
23
+ };
24
+ "prefer-server-actions": _typescript_eslint_utils_ts_eslint.RuleModule<"preferServerAction", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
25
+ name: string;
26
+ };
27
+ "prefer-shadcn": _typescript_eslint_utils_ts_eslint.RuleModule<"preferShadcn", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
28
+ name: string;
29
+ };
30
+ "require-assert-never": _typescript_eslint_utils_ts_eslint.RuleModule<"missingAssertNever", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
31
+ name: string;
32
+ };
33
+ "require-zod-form-validation": _typescript_eslint_utils_ts_eslint.RuleModule<"missingZodValidation", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
34
+ name: string;
35
+ };
36
+ "zod-naming-convention": _typescript_eslint_utils_ts_eslint.RuleModule<"zPrefix", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
37
+ name: string;
38
+ };
39
+ };
40
+ declare const plugin: {
41
+ meta: {
42
+ name: string;
43
+ version: string;
44
+ };
45
+ rules: {
46
+ "enforce-file-structure": _typescript_eslint_utils_ts_eslint.RuleModule<"incorrectOrder" | "useServerDirective", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
47
+ name: string;
48
+ };
49
+ "no-client-side-data-fetching": _typescript_eslint_utils_ts_eslint.RuleModule<"noClientFetch", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
50
+ name: string;
51
+ };
52
+ "no-enum": _typescript_eslint_utils_ts_eslint.RuleModule<"noEnum", readonly [{
53
+ ignoreFiles?: readonly string[];
54
+ }?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
55
+ name: string;
56
+ };
57
+ "no-raw-env": _typescript_eslint_utils_ts_eslint.RuleModule<"noRawEnv", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
58
+ name: string;
59
+ };
60
+ "no-unnecessary-use-client": _typescript_eslint_utils_ts_eslint.RuleModule<"unnecessaryUseClient", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
61
+ name: string;
62
+ };
63
+ "prefer-schema-for-api-payload": _typescript_eslint_utils_ts_eslint.RuleModule<"unparsedJsonAccess", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
64
+ name: string;
65
+ };
66
+ "prefer-server-actions": _typescript_eslint_utils_ts_eslint.RuleModule<"preferServerAction", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
67
+ name: string;
68
+ };
69
+ "prefer-shadcn": _typescript_eslint_utils_ts_eslint.RuleModule<"preferShadcn", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
70
+ name: string;
71
+ };
72
+ "require-assert-never": _typescript_eslint_utils_ts_eslint.RuleModule<"missingAssertNever", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
73
+ name: string;
74
+ };
75
+ "require-zod-form-validation": _typescript_eslint_utils_ts_eslint.RuleModule<"missingZodValidation", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
76
+ name: string;
77
+ };
78
+ "zod-naming-convention": _typescript_eslint_utils_ts_eslint.RuleModule<"zPrefix", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
79
+ name: string;
80
+ };
81
+ };
82
+ configs: {
83
+ recommended: {
84
+ plugins: string[];
85
+ rules: {
86
+ "@sarj/zod-naming-convention": string;
87
+ "@sarj/require-assert-never": string;
88
+ "@sarj/require-zod-form-validation": string;
89
+ "@sarj/enforce-file-structure": string;
90
+ "@sarj/no-client-side-data-fetching": string;
91
+ "@sarj/prefer-server-actions": string;
92
+ "@sarj/no-unnecessary-use-client": string;
93
+ "@sarj/prefer-schema-for-api-payload": string;
94
+ };
95
+ };
96
+ strict: {
97
+ plugins: string[];
98
+ rules: {
99
+ "@sarj/zod-naming-convention": string;
100
+ "@sarj/require-assert-never": string;
101
+ "@sarj/require-zod-form-validation": string;
102
+ "@sarj/enforce-file-structure": string;
103
+ "@sarj/no-raw-env": string;
104
+ "@sarj/prefer-shadcn": string;
105
+ "@sarj/no-enum": string;
106
+ "@sarj/no-client-side-data-fetching": string;
107
+ "@sarj/prefer-server-actions": string;
108
+ "@sarj/no-unnecessary-use-client": string;
109
+ "@sarj/prefer-schema-for-api-payload": string;
110
+ };
111
+ };
112
+ };
113
+ };
114
+
115
+ export { plugin as default, rules };
package/dist/index.d.ts CHANGED
@@ -1,12 +1,115 @@
1
- import type { ESLint, Linter, Rule } from "eslint";
2
- /**
3
- * @sarj/eslint-plugin
4
- *
5
- * Custom ESLint rules collection for Sarj projects.
6
- * Supports ESLint 9+ flat config format.
7
- */
8
- declare const rules: Record<string, Rule.RuleModule>;
9
- declare const plugin: ESLint.Plugin;
10
- declare const configs: Record<string, Linter.Config[]>;
11
- export { plugin as default, configs, rules };
12
- //# sourceMappingURL=index.d.ts.map
1
+ import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
2
+
3
+ declare const rules: {
4
+ "enforce-file-structure": _typescript_eslint_utils_ts_eslint.RuleModule<"incorrectOrder" | "useServerDirective", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
5
+ name: string;
6
+ };
7
+ "no-client-side-data-fetching": _typescript_eslint_utils_ts_eslint.RuleModule<"noClientFetch", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
8
+ name: string;
9
+ };
10
+ "no-enum": _typescript_eslint_utils_ts_eslint.RuleModule<"noEnum", readonly [{
11
+ ignoreFiles?: readonly string[];
12
+ }?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
13
+ name: string;
14
+ };
15
+ "no-raw-env": _typescript_eslint_utils_ts_eslint.RuleModule<"noRawEnv", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
16
+ name: string;
17
+ };
18
+ "no-unnecessary-use-client": _typescript_eslint_utils_ts_eslint.RuleModule<"unnecessaryUseClient", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
19
+ name: string;
20
+ };
21
+ "prefer-schema-for-api-payload": _typescript_eslint_utils_ts_eslint.RuleModule<"unparsedJsonAccess", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
22
+ name: string;
23
+ };
24
+ "prefer-server-actions": _typescript_eslint_utils_ts_eslint.RuleModule<"preferServerAction", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
25
+ name: string;
26
+ };
27
+ "prefer-shadcn": _typescript_eslint_utils_ts_eslint.RuleModule<"preferShadcn", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
28
+ name: string;
29
+ };
30
+ "require-assert-never": _typescript_eslint_utils_ts_eslint.RuleModule<"missingAssertNever", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
31
+ name: string;
32
+ };
33
+ "require-zod-form-validation": _typescript_eslint_utils_ts_eslint.RuleModule<"missingZodValidation", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
34
+ name: string;
35
+ };
36
+ "zod-naming-convention": _typescript_eslint_utils_ts_eslint.RuleModule<"zPrefix", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
37
+ name: string;
38
+ };
39
+ };
40
+ declare const plugin: {
41
+ meta: {
42
+ name: string;
43
+ version: string;
44
+ };
45
+ rules: {
46
+ "enforce-file-structure": _typescript_eslint_utils_ts_eslint.RuleModule<"incorrectOrder" | "useServerDirective", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
47
+ name: string;
48
+ };
49
+ "no-client-side-data-fetching": _typescript_eslint_utils_ts_eslint.RuleModule<"noClientFetch", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
50
+ name: string;
51
+ };
52
+ "no-enum": _typescript_eslint_utils_ts_eslint.RuleModule<"noEnum", readonly [{
53
+ ignoreFiles?: readonly string[];
54
+ }?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
55
+ name: string;
56
+ };
57
+ "no-raw-env": _typescript_eslint_utils_ts_eslint.RuleModule<"noRawEnv", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
58
+ name: string;
59
+ };
60
+ "no-unnecessary-use-client": _typescript_eslint_utils_ts_eslint.RuleModule<"unnecessaryUseClient", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
61
+ name: string;
62
+ };
63
+ "prefer-schema-for-api-payload": _typescript_eslint_utils_ts_eslint.RuleModule<"unparsedJsonAccess", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
64
+ name: string;
65
+ };
66
+ "prefer-server-actions": _typescript_eslint_utils_ts_eslint.RuleModule<"preferServerAction", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
67
+ name: string;
68
+ };
69
+ "prefer-shadcn": _typescript_eslint_utils_ts_eslint.RuleModule<"preferShadcn", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
70
+ name: string;
71
+ };
72
+ "require-assert-never": _typescript_eslint_utils_ts_eslint.RuleModule<"missingAssertNever", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
73
+ name: string;
74
+ };
75
+ "require-zod-form-validation": _typescript_eslint_utils_ts_eslint.RuleModule<"missingZodValidation", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
76
+ name: string;
77
+ };
78
+ "zod-naming-convention": _typescript_eslint_utils_ts_eslint.RuleModule<"zPrefix", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
79
+ name: string;
80
+ };
81
+ };
82
+ configs: {
83
+ recommended: {
84
+ plugins: string[];
85
+ rules: {
86
+ "@sarj/zod-naming-convention": string;
87
+ "@sarj/require-assert-never": string;
88
+ "@sarj/require-zod-form-validation": string;
89
+ "@sarj/enforce-file-structure": string;
90
+ "@sarj/no-client-side-data-fetching": string;
91
+ "@sarj/prefer-server-actions": string;
92
+ "@sarj/no-unnecessary-use-client": string;
93
+ "@sarj/prefer-schema-for-api-payload": string;
94
+ };
95
+ };
96
+ strict: {
97
+ plugins: string[];
98
+ rules: {
99
+ "@sarj/zod-naming-convention": string;
100
+ "@sarj/require-assert-never": string;
101
+ "@sarj/require-zod-form-validation": string;
102
+ "@sarj/enforce-file-structure": string;
103
+ "@sarj/no-raw-env": string;
104
+ "@sarj/prefer-shadcn": string;
105
+ "@sarj/no-enum": string;
106
+ "@sarj/no-client-side-data-fetching": string;
107
+ "@sarj/prefer-server-actions": string;
108
+ "@sarj/no-unnecessary-use-client": string;
109
+ "@sarj/prefer-schema-for-api-payload": string;
110
+ };
111
+ };
112
+ };
113
+ };
114
+
115
+ export { plugin as default, rules };