@skapxd/eslint-opinionated 0.1.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.
Files changed (42) hide show
  1. package/README.md +731 -0
  2. package/dist/astro/index.d.mts +33 -0
  3. package/dist/astro/index.d.ts +33 -0
  4. package/dist/astro/index.js +72 -0
  5. package/dist/astro/index.js.map +1 -0
  6. package/dist/astro/index.mjs +8 -0
  7. package/dist/astro/index.mjs.map +1 -0
  8. package/dist/chunk-3FB4H7N6.mjs +31 -0
  9. package/dist/chunk-3FB4H7N6.mjs.map +1 -0
  10. package/dist/chunk-BAHAXSWA.mjs +62 -0
  11. package/dist/chunk-BAHAXSWA.mjs.map +1 -0
  12. package/dist/chunk-CQKEQ32W.mjs +99 -0
  13. package/dist/chunk-CQKEQ32W.mjs.map +1 -0
  14. package/dist/chunk-RP7BOODV.mjs +1550 -0
  15. package/dist/chunk-RP7BOODV.mjs.map +1 -0
  16. package/dist/cli.d.mts +1 -0
  17. package/dist/cli.d.ts +1 -0
  18. package/dist/cli.js +3451 -0
  19. package/dist/cli.js.map +1 -0
  20. package/dist/cli.mjs +3428 -0
  21. package/dist/cli.mjs.map +1 -0
  22. package/dist/index.d.mts +14 -0
  23. package/dist/index.d.ts +14 -0
  24. package/dist/index.js +1781 -0
  25. package/dist/index.js.map +1 -0
  26. package/dist/index.mjs +44 -0
  27. package/dist/index.mjs.map +1 -0
  28. package/dist/next/index.d.mts +65 -0
  29. package/dist/next/index.d.ts +65 -0
  30. package/dist/next/index.js +103 -0
  31. package/dist/next/index.js.map +1 -0
  32. package/dist/next/index.mjs +8 -0
  33. package/dist/next/index.mjs.map +1 -0
  34. package/dist/rules-qISQhAKV.d.mts +5 -0
  35. package/dist/rules-qISQhAKV.d.ts +5 -0
  36. package/dist/shared/index.d.mts +110 -0
  37. package/dist/shared/index.d.ts +110 -0
  38. package/dist/shared/index.js +1684 -0
  39. package/dist/shared/index.js.map +1 -0
  40. package/dist/shared/index.mjs +15 -0
  41. package/dist/shared/index.mjs.map +1 -0
  42. package/package.json +80 -0
@@ -0,0 +1,110 @@
1
+ export { r as rules } from '../rules-qISQhAKV.mjs';
2
+ import 'eslint';
3
+
4
+ declare function createSharedConfigs(pluginReference: unknown): {
5
+ backend: {
6
+ languageOptions: {
7
+ parserOptions: {
8
+ projectService: boolean;
9
+ };
10
+ };
11
+ name: string;
12
+ plugins: {
13
+ skapxd: unknown;
14
+ };
15
+ rules: {
16
+ "skapxd/async-functions-return-result": (string | {
17
+ checkMissingReturnType: boolean;
18
+ resultTypeNames: string[];
19
+ })[];
20
+ "skapxd/no-ad-hoc-ok-result": string;
21
+ "skapxd/no-deep-relative-imports": string;
22
+ "skapxd/no-promise-chain": string;
23
+ "skapxd/no-try-catch": string;
24
+ "skapxd/one-root-function-per-file": string;
25
+ "skapxd/prefer-ts-pattern": string;
26
+ "skapxd/result-error-requires-cause": string;
27
+ };
28
+ };
29
+ base: {
30
+ name: string;
31
+ plugins: {
32
+ skapxd: unknown;
33
+ };
34
+ rules: {
35
+ "skapxd/no-ad-hoc-ok-result": string;
36
+ "skapxd/no-deep-relative-imports": string;
37
+ "skapxd/no-promise-chain": string;
38
+ "skapxd/no-try-catch": string;
39
+ "skapxd/one-root-function-per-file": string;
40
+ "skapxd/prefer-ts-pattern": string;
41
+ "skapxd/result-error-requires-cause": string;
42
+ };
43
+ };
44
+ frontend: {
45
+ languageOptions: {
46
+ parserOptions: {
47
+ projectService: boolean;
48
+ };
49
+ };
50
+ name: string;
51
+ plugins: {
52
+ skapxd: unknown;
53
+ };
54
+ rules: {
55
+ "skapxd/jsx-return-name-pascal-case": string;
56
+ "skapxd/no-functions-inside-components": string;
57
+ "skapxd/no-jsx-ternary-null": string;
58
+ "skapxd/max-hook-size": (string | {
59
+ maxLines: number;
60
+ maxUseState: number;
61
+ })[];
62
+ "skapxd/no-ad-hoc-ok-result": string;
63
+ "skapxd/no-deep-relative-imports": string;
64
+ "skapxd/no-promise-chain": string;
65
+ "skapxd/no-try-catch": string;
66
+ "skapxd/one-root-function-per-file": string;
67
+ "skapxd/prefer-ts-pattern": string;
68
+ "skapxd/result-error-requires-cause": string;
69
+ };
70
+ };
71
+ frontendServices: {
72
+ files: string[];
73
+ languageOptions: {
74
+ parserOptions: {
75
+ projectService: boolean;
76
+ };
77
+ };
78
+ name: string;
79
+ plugins: {
80
+ skapxd: unknown;
81
+ };
82
+ rules: {
83
+ "skapxd/await-requires-try-safe": string;
84
+ };
85
+ };
86
+ package: {
87
+ name: string;
88
+ plugins: {
89
+ skapxd: unknown;
90
+ };
91
+ rules: {
92
+ "skapxd/one-root-function-per-file": string;
93
+ };
94
+ };
95
+ };
96
+
97
+ declare function createTypedLanguageOptions(): {
98
+ parserOptions: {
99
+ projectService: boolean;
100
+ };
101
+ };
102
+
103
+ declare const strictConfig: {
104
+ linterOptions: {
105
+ noInlineConfig: boolean;
106
+ };
107
+ name: string;
108
+ };
109
+
110
+ export { createSharedConfigs, createTypedLanguageOptions, strictConfig };
@@ -0,0 +1,110 @@
1
+ export { r as rules } from '../rules-qISQhAKV.js';
2
+ import 'eslint';
3
+
4
+ declare function createSharedConfigs(pluginReference: unknown): {
5
+ backend: {
6
+ languageOptions: {
7
+ parserOptions: {
8
+ projectService: boolean;
9
+ };
10
+ };
11
+ name: string;
12
+ plugins: {
13
+ skapxd: unknown;
14
+ };
15
+ rules: {
16
+ "skapxd/async-functions-return-result": (string | {
17
+ checkMissingReturnType: boolean;
18
+ resultTypeNames: string[];
19
+ })[];
20
+ "skapxd/no-ad-hoc-ok-result": string;
21
+ "skapxd/no-deep-relative-imports": string;
22
+ "skapxd/no-promise-chain": string;
23
+ "skapxd/no-try-catch": string;
24
+ "skapxd/one-root-function-per-file": string;
25
+ "skapxd/prefer-ts-pattern": string;
26
+ "skapxd/result-error-requires-cause": string;
27
+ };
28
+ };
29
+ base: {
30
+ name: string;
31
+ plugins: {
32
+ skapxd: unknown;
33
+ };
34
+ rules: {
35
+ "skapxd/no-ad-hoc-ok-result": string;
36
+ "skapxd/no-deep-relative-imports": string;
37
+ "skapxd/no-promise-chain": string;
38
+ "skapxd/no-try-catch": string;
39
+ "skapxd/one-root-function-per-file": string;
40
+ "skapxd/prefer-ts-pattern": string;
41
+ "skapxd/result-error-requires-cause": string;
42
+ };
43
+ };
44
+ frontend: {
45
+ languageOptions: {
46
+ parserOptions: {
47
+ projectService: boolean;
48
+ };
49
+ };
50
+ name: string;
51
+ plugins: {
52
+ skapxd: unknown;
53
+ };
54
+ rules: {
55
+ "skapxd/jsx-return-name-pascal-case": string;
56
+ "skapxd/no-functions-inside-components": string;
57
+ "skapxd/no-jsx-ternary-null": string;
58
+ "skapxd/max-hook-size": (string | {
59
+ maxLines: number;
60
+ maxUseState: number;
61
+ })[];
62
+ "skapxd/no-ad-hoc-ok-result": string;
63
+ "skapxd/no-deep-relative-imports": string;
64
+ "skapxd/no-promise-chain": string;
65
+ "skapxd/no-try-catch": string;
66
+ "skapxd/one-root-function-per-file": string;
67
+ "skapxd/prefer-ts-pattern": string;
68
+ "skapxd/result-error-requires-cause": string;
69
+ };
70
+ };
71
+ frontendServices: {
72
+ files: string[];
73
+ languageOptions: {
74
+ parserOptions: {
75
+ projectService: boolean;
76
+ };
77
+ };
78
+ name: string;
79
+ plugins: {
80
+ skapxd: unknown;
81
+ };
82
+ rules: {
83
+ "skapxd/await-requires-try-safe": string;
84
+ };
85
+ };
86
+ package: {
87
+ name: string;
88
+ plugins: {
89
+ skapxd: unknown;
90
+ };
91
+ rules: {
92
+ "skapxd/one-root-function-per-file": string;
93
+ };
94
+ };
95
+ };
96
+
97
+ declare function createTypedLanguageOptions(): {
98
+ parserOptions: {
99
+ projectService: boolean;
100
+ };
101
+ };
102
+
103
+ declare const strictConfig: {
104
+ linterOptions: {
105
+ noInlineConfig: boolean;
106
+ };
107
+ name: string;
108
+ };
109
+
110
+ export { createSharedConfigs, createTypedLanguageOptions, strictConfig };