@thethracian/oxlint-config 0.1.0 → 0.2.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/CHANGELOG.md +19 -0
- package/README.md +62 -2
- package/dist/index.d.ts +34 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +73 -2
- package/dist/index.js.map +1 -1
- package/dist/rules/acronym-case.d.ts.map +1 -1
- package/dist/rules/acronym-case.js +0 -2
- package/dist/rules/acronym-case.js.map +1 -1
- package/dist/rules/effect-default-helpers.d.ts +33 -0
- package/dist/rules/effect-default-helpers.d.ts.map +1 -0
- package/dist/rules/effect-default-helpers.js +536 -0
- package/dist/rules/effect-default-helpers.js.map +1 -0
- package/dist/rules/effect-default-resource-helpers.d.ts +5 -0
- package/dist/rules/effect-default-resource-helpers.d.ts.map +1 -0
- package/dist/rules/effect-default-resource-helpers.js +65 -0
- package/dist/rules/effect-default-resource-helpers.js.map +1 -0
- package/dist/rules/effect-default-test-helpers.d.ts +5 -0
- package/dist/rules/effect-default-test-helpers.d.ts.map +1 -0
- package/dist/rules/effect-default-test-helpers.js +46 -0
- package/dist/rules/effect-default-test-helpers.js.map +1 -0
- package/dist/rules/effect-default.d.ts +3 -0
- package/dist/rules/effect-default.d.ts.map +1 -0
- package/dist/rules/effect-default.js +882 -0
- package/dist/rules/effect-default.js.map +1 -0
- package/dist/rules/effect-path-options.d.ts +59 -0
- package/dist/rules/effect-path-options.d.ts.map +1 -0
- package/dist/rules/effect-path-options.js +114 -0
- package/dist/rules/effect-path-options.js.map +1 -0
- package/dist/rules/effect-rule-core.d.ts +60 -0
- package/dist/rules/effect-rule-core.d.ts.map +1 -0
- package/dist/rules/effect-rule-core.js +509 -0
- package/dist/rules/effect-rule-core.js.map +1 -0
- package/dist/rules/effect-rule-names.d.ts +4 -0
- package/dist/rules/effect-rule-names.d.ts.map +1 -0
- package/dist/rules/effect-rule-names.js +147 -0
- package/dist/rules/effect-rule-names.js.map +1 -0
- package/dist/rules/effect-source-helpers.d.ts +10 -0
- package/dist/rules/effect-source-helpers.d.ts.map +1 -0
- package/dist/rules/effect-source-helpers.js +359 -0
- package/dist/rules/effect-source-helpers.js.map +1 -0
- package/dist/rules/effect-source-scan.d.ts +8 -0
- package/dist/rules/effect-source-scan.d.ts.map +1 -0
- package/dist/rules/effect-source-scan.js +364 -0
- package/dist/rules/effect-source-scan.js.map +1 -0
- package/dist/rules/effect-strict-helpers.d.ts +34 -0
- package/dist/rules/effect-strict-helpers.d.ts.map +1 -0
- package/dist/rules/effect-strict-helpers.js +500 -0
- package/dist/rules/effect-strict-helpers.js.map +1 -0
- package/dist/rules/effect-strict.d.ts +3 -0
- package/dist/rules/effect-strict.d.ts.map +1 -0
- package/dist/rules/effect-strict.js +727 -0
- package/dist/rules/effect-strict.js.map +1 -0
- package/dist/rules/max-line-length.d.ts.map +1 -1
- package/dist/rules/max-line-length.js +25 -7
- package/dist/rules/max-line-length.js.map +1 -1
- package/dist/rules/plugin.d.ts +2 -121
- package/dist/rules/plugin.d.ts.map +1 -1
- package/dist/rules/plugin.js +94 -101
- package/dist/rules/plugin.js.map +1 -1
- package/dist/rules/require-function-doc.d.ts.map +1 -1
- package/dist/rules/require-function-doc.js +32 -21
- package/dist/rules/require-function-doc.js.map +1 -1
- package/dist/rules/source-cache.d.ts +11 -0
- package/dist/rules/source-cache.d.ts.map +1 -0
- package/dist/rules/source-cache.js +50 -0
- package/dist/rules/source-cache.js.map +1 -0
- package/package.json +13 -4
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
const effectDefaultRuleNames = [
|
|
2
|
+
'effect-no-floating-effect',
|
|
3
|
+
'effect-require-yield-star',
|
|
4
|
+
'effect-require-return-yield-star',
|
|
5
|
+
'effect-prefer-gen-for-nested-flatmap',
|
|
6
|
+
'effect-no-function-returning-gen',
|
|
7
|
+
'effect-prefer-effect-fn-for-exported-effects',
|
|
8
|
+
'effect-no-unnecessary-gen',
|
|
9
|
+
'effect-no-effect-in-array-foreach',
|
|
10
|
+
'effect-no-effect-in-promise-callback',
|
|
11
|
+
'effect-no-floating-fiber',
|
|
12
|
+
'effect-require-suspend-for-recursion',
|
|
13
|
+
'effect-require-suspend-for-lazy-evaluation',
|
|
14
|
+
'effect-no-async-await-in-effect',
|
|
15
|
+
'effect-no-promise-then-in-effect',
|
|
16
|
+
'effect-no-throw',
|
|
17
|
+
'effect-no-string-errors',
|
|
18
|
+
'effect-no-untagged-errors',
|
|
19
|
+
'effect-no-silent-error-swallowing',
|
|
20
|
+
'effect-require-typed-error-in-trypromise',
|
|
21
|
+
'effect-prefer-catchTag-over-catchAll',
|
|
22
|
+
'effect-no-catchAll-with-mapError',
|
|
23
|
+
'effect-prefer-mapError-over-catchAll-rethrow',
|
|
24
|
+
'effect-require-error-cause-preserved',
|
|
25
|
+
'effect-prefer-ignore-logged',
|
|
26
|
+
'effect-prefer-catchTags-for-multiple-tags',
|
|
27
|
+
'effect-no-error-channel-widening-to-unknown',
|
|
28
|
+
'effect-no-run-inside-effect',
|
|
29
|
+
'effect-no-runpromise-in-exported-api',
|
|
30
|
+
'effect-no-runfork-without-observer',
|
|
31
|
+
'effect-no-sync-for-promise',
|
|
32
|
+
'effect-no-sync-for-throwing-ops',
|
|
33
|
+
'effect-no-console-log-in-effect-code',
|
|
34
|
+
'effect-no-process-env-in-effect-code',
|
|
35
|
+
'effect-no-date-now-in-effect-code',
|
|
36
|
+
'effect-no-math-random-in-effect-code',
|
|
37
|
+
'effect-no-json-parse-cast',
|
|
38
|
+
'effect-schema-prefer-decodeUnknown-effect',
|
|
39
|
+
'effect-schema-require-parse-error-handling',
|
|
40
|
+
'effect-schema-use-decodeUnknown-for-external-data',
|
|
41
|
+
'effect-schema-no-unsafe-sync-decode-in-effect-code',
|
|
42
|
+
'effect-schema-require-parseJson-for-json-strings',
|
|
43
|
+
'effect-schema-correct-number-type-for-parsed-json',
|
|
44
|
+
'effect-schema-prefer-taggedClass-over-manual-tag',
|
|
45
|
+
'effect-schema-avoid-old-type-names',
|
|
46
|
+
'effect-schema-no-cast-after-decode',
|
|
47
|
+
'effect-require-acquire-release',
|
|
48
|
+
'effect-require-scoped-for-acquireRelease',
|
|
49
|
+
'effect-require-scoped-for-resources',
|
|
50
|
+
'effect-no-fork-daemon-without-cleanup',
|
|
51
|
+
'effect-prefer-fork-scoped-for-listeners',
|
|
52
|
+
'effect-require-restore-for-fork-in-uninterruptible',
|
|
53
|
+
'effect-require-bounded-concurrency',
|
|
54
|
+
'effect-require-bounded-flatMap-concurrency',
|
|
55
|
+
'effect-no-unbounded-queue',
|
|
56
|
+
'effect-no-unbounded-stream-buffer',
|
|
57
|
+
'effect-test-no-runpromise',
|
|
58
|
+
'effect-prefer-it-effect-for-unit-tests',
|
|
59
|
+
'effect-testClock-requires-fork',
|
|
60
|
+
'effect-testClock-requires-testContext',
|
|
61
|
+
'effect-no-real-sleep-in-tests',
|
|
62
|
+
'effect-use-exit-for-failure-tests',
|
|
63
|
+
'effect-no-focused-effect-tests',
|
|
64
|
+
'effect-no-skipped-effect-tests',
|
|
65
|
+
'effect-no-obsolete-imports',
|
|
66
|
+
'effect-no-known-fake-api',
|
|
67
|
+
'effect-prefer-gen-over-do',
|
|
68
|
+
'effect-prefer-direct-yield-star',
|
|
69
|
+
'effect-prefer-config-redacted',
|
|
70
|
+
'effect-no-deprecated-schema-package',
|
|
71
|
+
'effect-no-deprecated-context-tag-function',
|
|
72
|
+
'effect-no-global-error-channel',
|
|
73
|
+
'effect-use-duration-constructors',
|
|
74
|
+
'effect-no-mixed-effect-import-styles',
|
|
75
|
+
'effect-prefer-effect-is',
|
|
76
|
+
'effect-no-try-catch-in-effect-gen',
|
|
77
|
+
'effect-no-new-promise',
|
|
78
|
+
'effect-no-global-timers',
|
|
79
|
+
'effect-no-native-error-classes',
|
|
80
|
+
'effect-no-unsafe-effect-type-assertion',
|
|
81
|
+
'effect-require-service-self-match',
|
|
82
|
+
'effect-no-effect-fn-iife',
|
|
83
|
+
];
|
|
84
|
+
const effectStrictRuleNames = [
|
|
85
|
+
'effect-no-run-outside-entrypoints',
|
|
86
|
+
'effect-require-platform-runmain-at-entrypoints',
|
|
87
|
+
'effect-no-runSync-in-server-request-handlers',
|
|
88
|
+
'effect-no-promise-returning-public-api',
|
|
89
|
+
'effect-no-direct-process-env-outside-config-layer',
|
|
90
|
+
'effect-no-direct-clock-random-outside-adapters',
|
|
91
|
+
'effect-no-direct-http-fs-outside-platform-services',
|
|
92
|
+
'effect-require-service-class-pattern',
|
|
93
|
+
'effect-require-tag-identifier',
|
|
94
|
+
'effect-no-leaked-service-dependencies',
|
|
95
|
+
'effect-no-duplicate-layer-instances',
|
|
96
|
+
'effect-require-centralized-provision',
|
|
97
|
+
'effect-no-provide-in-domain-modules',
|
|
98
|
+
'effect-require-layer-memoization-constant',
|
|
99
|
+
'effect-require-suspend-for-circular-deps',
|
|
100
|
+
'effect-avoid-layer-explosion',
|
|
101
|
+
'effect-prefer-succeed-for-static-layers',
|
|
102
|
+
'effect-require-scoped-for-resource-layers',
|
|
103
|
+
'effect-no-service-construction-outside-layer',
|
|
104
|
+
'effect-schema-require-validation-at-input-boundaries',
|
|
105
|
+
'effect-schema-require-validation-at-output-boundaries',
|
|
106
|
+
'effect-schema-require-http-client-response-schema',
|
|
107
|
+
'effect-schema-require-http-server-request-schema',
|
|
108
|
+
'effect-schema-require-config-schema',
|
|
109
|
+
'effect-schema-require-persistence-schema',
|
|
110
|
+
'effect-schema-require-public-command-schema',
|
|
111
|
+
'effect-schema-no-unknown-crossing-boundary',
|
|
112
|
+
'effect-require-timeout-on-external-effects',
|
|
113
|
+
'effect-require-retry-policy-for-idempotent-external-effects',
|
|
114
|
+
'effect-require-schedule-jitter-for-retries',
|
|
115
|
+
'effect-require-span-external',
|
|
116
|
+
'effect-require-semaphore-for-shared-resources',
|
|
117
|
+
'effect-require-ref-for-shared-mutable-state',
|
|
118
|
+
'effect-require-scoped-in-loops',
|
|
119
|
+
'effect-require-onExit-for-cleanup',
|
|
120
|
+
'effect-require-stream-resource-safety',
|
|
121
|
+
'effect-require-stream-termination',
|
|
122
|
+
'effect-require-explicit-asyncPush-buffer',
|
|
123
|
+
'effect-require-batching-for-resolver',
|
|
124
|
+
'effect-use-batched-resolver-for-n-plus-one',
|
|
125
|
+
'effect-prefer-pubsub-for-broadcast',
|
|
126
|
+
'effect-require-provided-services-in-tests',
|
|
127
|
+
'effect-prefer-in-memory-implementations',
|
|
128
|
+
'effect-no-live-services-in-unit-tests',
|
|
129
|
+
'effect-require-testclock-for-time-code',
|
|
130
|
+
'effect-no-test-runtime-leakage',
|
|
131
|
+
'effect-no-ad-hoc-effect-wrapper-abstractions',
|
|
132
|
+
'effect-require-effect-suppression-reason-and-ticket',
|
|
133
|
+
'effect-no-crypto-randomUUID',
|
|
134
|
+
'effect-require-schema-is-over-instanceof',
|
|
135
|
+
'effect-prefer-schema-tagged-struct',
|
|
136
|
+
'effect-prefer-single-schema-literal-union',
|
|
137
|
+
'effect-require-deterministic-service-keys',
|
|
138
|
+
'effect-no-multiple-provide-chain',
|
|
139
|
+
'effect-require-layer-scoped-when-scope-required',
|
|
140
|
+
'effect-no-node-builtins-when-effect-platform-exists',
|
|
141
|
+
'effect-no-global-fetch',
|
|
142
|
+
'effect-prefer-effect-void',
|
|
143
|
+
'effect-prefer-asVoid',
|
|
144
|
+
'effect-prefer-flatMap-over-map-flatten',
|
|
145
|
+
];
|
|
146
|
+
export { effectDefaultRuleNames, effectStrictRuleNames };
|
|
147
|
+
//# sourceMappingURL=effect-rule-names.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"effect-rule-names.js","sourceRoot":"","sources":["../../src/rules/effect-rule-names.ts"],"names":[],"mappings":"AAAA,MAAM,sBAAsB,GAAG;IAC7B,2BAA2B;IAC3B,2BAA2B;IAC3B,kCAAkC;IAClC,sCAAsC;IACtC,kCAAkC;IAClC,8CAA8C;IAC9C,2BAA2B;IAC3B,mCAAmC;IACnC,sCAAsC;IAC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+B;IAC/B,uCAAuC;IACvC,qCAAqC;IACrC,sCAAsC;IACtC,qCAAqC;IACrC,2CAA2C;IAC3C,0CAA0C;IAC1C,8BAA8B;IAC9B,yCAAyC;IACzC,2CAA2C;IAC3C,8CAA8C;IAC9C,sDAAsD;IACtD,uDAAuD;IACvD,mDAAmD;IACnD,kDAAkD;IAClD,qCAAqC;IACrC,0CAA0C;IAC1C,6CAA6C;IAC7C,4CAA4C;IAC5C,4CAA4C;IAC5C,6DAA6D;IAC7D,4CAA4C;IAC5C,8BAA8B;IAC9B,+CAA+C;IAC/C,6CAA6C;IAC7C,gCAAgC;IAChC,mCAAmC;IACnC,uCAAuC;IACvC,mCAAmC;IACnC,0CAA0C;IAC1C,sCAAsC;IACtC,4CAA4C;IAC5C,oCAAoC;IACpC,2CAA2C;IAC3C,yCAAyC;IACzC,uCAAuC;IACvC,wCAAwC;IACxC,gCAAgC;IAChC,8CAA8C;IAC9C,qDAAqD;IACrD,6BAA6B;IAC7B,0CAA0C;IAC1C,oCAAoC;IACpC,2CAA2C;IAC3C,2CAA2C;IAC3C,kCAAkC;IAClC,iDAAiD;IACjD,qDAAqD;IACrD,wBAAwB;IACxB,2BAA2B;IAC3B,sBAAsB;IACtB,wCAAwC;CAChC,CAAC;AAEX,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { findBalancedCallEnd, findMatchingBrace, stripComments, stripCommentsAndStrings } from './effect-source-scan.js';
|
|
2
|
+
declare function isInsideCall(source: string, targetIndex: number, callPattern: RegExp): boolean;
|
|
3
|
+
declare function statementAfter(source: string, targetIndex: number, maxLength?: number): string;
|
|
4
|
+
declare function findStatementEnd(source: string, startIndex: number): number;
|
|
5
|
+
declare function exportedDeclarationTexts(source: string): string[];
|
|
6
|
+
declare function exportedDeclarationSegments(source: string): string[];
|
|
7
|
+
declare function exportedCallableDeclarationSegments(source: string): string[];
|
|
8
|
+
declare function sameFunctionTail(source: string, targetIndex: number): string;
|
|
9
|
+
export { exportedCallableDeclarationSegments, exportedDeclarationSegments, exportedDeclarationTexts, findBalancedCallEnd, findMatchingBrace, findStatementEnd, isInsideCall, sameFunctionTail, statementAfter, stripComments, stripCommentsAndStrings, };
|
|
10
|
+
//# sourceMappingURL=effect-source-helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"effect-source-helpers.d.ts","sourceRoot":"","sources":["../../src/rules/effect-source-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EAGjB,aAAa,EACb,uBAAuB,EACxB,MAAM,yBAAyB,CAAC;AA0FjC,iBAAS,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAYvF;AAED,iBAAS,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,SAAM,GAAG,MAAM,CAGpF;AAED,iBAAS,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CA2DpE;AAED,iBAAS,wBAAwB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAmH1D;AAuBD,iBAAS,2BAA2B,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAgC7D;AAED,iBAAS,mCAAmC,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAsCrE;AAiBD,iBAAS,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,CAqBrE;AAED,OAAO,EACL,mCAAmC,EACnC,2BAA2B,EAC3B,wBAAwB,EACxB,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,EACZ,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,uBAAuB,GACxB,CAAC"}
|
|
@@ -0,0 +1,359 @@
|
|
|
1
|
+
import { findBalancedCallEnd, findMatchingBrace, findRegexLiteralEnd, isRegexLiteralStart, stripComments, stripCommentsAndStrings, } from './effect-source-scan.js';
|
|
2
|
+
const EXPORTED_DECLARATION_CACHE_MAX = 256;
|
|
3
|
+
const exportedDeclarationCache = new Map();
|
|
4
|
+
const exportedDeclarationSegmentCache = new Map();
|
|
5
|
+
const exportedCallableDeclarationSegmentCache = new Map();
|
|
6
|
+
function cachedExportedDeclarations(source) {
|
|
7
|
+
return exportedDeclarationCache.get(source);
|
|
8
|
+
}
|
|
9
|
+
function cacheExportedDeclarations(source, declarations) {
|
|
10
|
+
if (exportedDeclarationCache.size >= EXPORTED_DECLARATION_CACHE_MAX) {
|
|
11
|
+
const firstKey = exportedDeclarationCache.keys().next().value;
|
|
12
|
+
if (firstKey !== undefined) {
|
|
13
|
+
exportedDeclarationCache.delete(firstKey);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exportedDeclarationCache.set(source, declarations);
|
|
17
|
+
return declarations;
|
|
18
|
+
}
|
|
19
|
+
function cacheExportedDeclarationSegments(source, segments) {
|
|
20
|
+
if (exportedDeclarationSegmentCache.size >= EXPORTED_DECLARATION_CACHE_MAX) {
|
|
21
|
+
const firstKey = exportedDeclarationSegmentCache.keys().next().value;
|
|
22
|
+
if (firstKey !== undefined) {
|
|
23
|
+
exportedDeclarationSegmentCache.delete(firstKey);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exportedDeclarationSegmentCache.set(source, segments);
|
|
27
|
+
return segments;
|
|
28
|
+
}
|
|
29
|
+
function cacheExportedCallableDeclarationSegments(source, segments) {
|
|
30
|
+
if (exportedCallableDeclarationSegmentCache.size >= EXPORTED_DECLARATION_CACHE_MAX) {
|
|
31
|
+
const firstKey = exportedCallableDeclarationSegmentCache.keys().next().value;
|
|
32
|
+
if (firstKey !== undefined) {
|
|
33
|
+
exportedCallableDeclarationSegmentCache.delete(firstKey);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exportedCallableDeclarationSegmentCache.set(source, segments);
|
|
37
|
+
return segments;
|
|
38
|
+
}
|
|
39
|
+
function findEnclosingBraceOpen(source, targetIndex) {
|
|
40
|
+
const stack = [];
|
|
41
|
+
let quote = '';
|
|
42
|
+
let isEscaped = false;
|
|
43
|
+
for (let index = 0; index < targetIndex; index++) {
|
|
44
|
+
const char = source[index];
|
|
45
|
+
const nextChar = source[index + 1];
|
|
46
|
+
if (quote) {
|
|
47
|
+
if (isEscaped) {
|
|
48
|
+
isEscaped = false;
|
|
49
|
+
}
|
|
50
|
+
else if (char === '\\') {
|
|
51
|
+
isEscaped = true;
|
|
52
|
+
}
|
|
53
|
+
else if (char === quote) {
|
|
54
|
+
quote = '';
|
|
55
|
+
}
|
|
56
|
+
continue;
|
|
57
|
+
}
|
|
58
|
+
if (char === '/' && nextChar === '/') {
|
|
59
|
+
const newlineIndex = source.indexOf('\n', index + 2);
|
|
60
|
+
index = newlineIndex === -1 ? targetIndex : newlineIndex;
|
|
61
|
+
continue;
|
|
62
|
+
}
|
|
63
|
+
if (char === '/' && nextChar === '*') {
|
|
64
|
+
const commentEnd = source.indexOf('*/', index + 2);
|
|
65
|
+
index = commentEnd === -1 ? targetIndex : commentEnd + 1;
|
|
66
|
+
continue;
|
|
67
|
+
}
|
|
68
|
+
if (isRegexLiteralStart(source, index)) {
|
|
69
|
+
index = findRegexLiteralEnd(source, index);
|
|
70
|
+
continue;
|
|
71
|
+
}
|
|
72
|
+
if (char === '"' || char === "'" || char === '`') {
|
|
73
|
+
quote = char;
|
|
74
|
+
continue;
|
|
75
|
+
}
|
|
76
|
+
if (char === '{') {
|
|
77
|
+
stack.push(index);
|
|
78
|
+
}
|
|
79
|
+
else if (char === '}') {
|
|
80
|
+
stack.pop();
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
return stack.at(-1) ?? -1;
|
|
84
|
+
}
|
|
85
|
+
function isInsideCall(source, targetIndex, callPattern) {
|
|
86
|
+
for (const match of source.matchAll(callPattern)) {
|
|
87
|
+
const openParenIndex = source.indexOf('(', match.index);
|
|
88
|
+
if (openParenIndex === -1 || openParenIndex > targetIndex) {
|
|
89
|
+
continue;
|
|
90
|
+
}
|
|
91
|
+
if (targetIndex <= findBalancedCallEnd(source, openParenIndex)) {
|
|
92
|
+
return true;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
return false;
|
|
96
|
+
}
|
|
97
|
+
function statementAfter(source, targetIndex, maxLength = 320) {
|
|
98
|
+
const end = source.indexOf(';', targetIndex);
|
|
99
|
+
return source.slice(targetIndex, end === -1 ? targetIndex + maxLength : end + 1);
|
|
100
|
+
}
|
|
101
|
+
function findStatementEnd(source, startIndex) {
|
|
102
|
+
let parenDepth = 0;
|
|
103
|
+
let braceDepth = 0;
|
|
104
|
+
let bracketDepth = 0;
|
|
105
|
+
let quote = '';
|
|
106
|
+
let isEscaped = false;
|
|
107
|
+
for (let index = startIndex; index < source.length; index++) {
|
|
108
|
+
const char = source[index];
|
|
109
|
+
const nextChar = source[index + 1];
|
|
110
|
+
if (quote) {
|
|
111
|
+
if (isEscaped) {
|
|
112
|
+
isEscaped = false;
|
|
113
|
+
}
|
|
114
|
+
else if (char === '\\') {
|
|
115
|
+
isEscaped = true;
|
|
116
|
+
}
|
|
117
|
+
else if (char === quote) {
|
|
118
|
+
quote = '';
|
|
119
|
+
}
|
|
120
|
+
continue;
|
|
121
|
+
}
|
|
122
|
+
if (char === '/' && nextChar === '/') {
|
|
123
|
+
const newlineIndex = source.indexOf('\n', index + 2);
|
|
124
|
+
index = newlineIndex === -1 ? source.length : newlineIndex;
|
|
125
|
+
continue;
|
|
126
|
+
}
|
|
127
|
+
if (char === '/' && nextChar === '*') {
|
|
128
|
+
const commentEnd = source.indexOf('*/', index + 2);
|
|
129
|
+
index = commentEnd === -1 ? source.length : commentEnd + 1;
|
|
130
|
+
continue;
|
|
131
|
+
}
|
|
132
|
+
if (isRegexLiteralStart(source, index)) {
|
|
133
|
+
index = findRegexLiteralEnd(source, index);
|
|
134
|
+
continue;
|
|
135
|
+
}
|
|
136
|
+
if (char === '"' || char === "'" || char === '`') {
|
|
137
|
+
quote = char;
|
|
138
|
+
continue;
|
|
139
|
+
}
|
|
140
|
+
if (char === '(') {
|
|
141
|
+
parenDepth++;
|
|
142
|
+
}
|
|
143
|
+
else if (char === ')') {
|
|
144
|
+
parenDepth--;
|
|
145
|
+
}
|
|
146
|
+
else if (char === '{') {
|
|
147
|
+
braceDepth++;
|
|
148
|
+
}
|
|
149
|
+
else if (char === '}') {
|
|
150
|
+
braceDepth--;
|
|
151
|
+
}
|
|
152
|
+
else if (char === '[') {
|
|
153
|
+
bracketDepth++;
|
|
154
|
+
}
|
|
155
|
+
else if (char === ']') {
|
|
156
|
+
bracketDepth--;
|
|
157
|
+
}
|
|
158
|
+
else if (char === ';' && parenDepth === 0 && braceDepth === 0 && bracketDepth === 0) {
|
|
159
|
+
return index;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
return source.length - 1;
|
|
163
|
+
}
|
|
164
|
+
function exportedDeclarationTexts(source) {
|
|
165
|
+
const cachedValue = cachedExportedDeclarations(source);
|
|
166
|
+
if (cachedValue) {
|
|
167
|
+
return cachedValue;
|
|
168
|
+
}
|
|
169
|
+
const code = stripCommentsAndStrings(source);
|
|
170
|
+
const declarations = [];
|
|
171
|
+
for (const match of code.matchAll(/\bexport\s+default\s+(?:async\s*)?(?:\([^)]*\)|[A-Za-z_$][\w$]*)?\s*=>/g)) {
|
|
172
|
+
const statementEnd = findStatementEnd(source, match.index);
|
|
173
|
+
declarations.push(source.slice(match.index, statementEnd + 1));
|
|
174
|
+
}
|
|
175
|
+
for (const match of code.matchAll(/\bexport\s+(?:default\s+)?(?:async\s+)?function(?:\s+[A-Za-z_$][\w$]*)?\b/g)) {
|
|
176
|
+
const bodyStart = source.indexOf('{', match.index);
|
|
177
|
+
if (bodyStart === -1) {
|
|
178
|
+
continue;
|
|
179
|
+
}
|
|
180
|
+
const bodyEnd = findMatchingBrace(source, bodyStart);
|
|
181
|
+
if (bodyEnd !== -1) {
|
|
182
|
+
declarations.push(source.slice(match.index, bodyEnd + 1));
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
for (const match of code.matchAll(/\bexport\s+(?:const|let|var)\s+[A-Za-z_$][\w$]*\b/g)) {
|
|
186
|
+
const statementEnd = findStatementEnd(source, match.index);
|
|
187
|
+
declarations.push(source.slice(match.index, statementEnd + 1));
|
|
188
|
+
}
|
|
189
|
+
for (const match of code.matchAll(/\bexport\s+type\s+[A-Za-z_$][\w$]*\b/g)) {
|
|
190
|
+
const statementEnd = findStatementEnd(source, match.index);
|
|
191
|
+
declarations.push(source.slice(match.index, statementEnd + 1));
|
|
192
|
+
}
|
|
193
|
+
for (const match of code.matchAll(/\bexport\s+interface\s+[A-Za-z_$][\w$]*\b/g)) {
|
|
194
|
+
const bodyStart = source.indexOf('{', match.index);
|
|
195
|
+
if (bodyStart === -1) {
|
|
196
|
+
continue;
|
|
197
|
+
}
|
|
198
|
+
const bodyEnd = findMatchingBrace(source, bodyStart);
|
|
199
|
+
if (bodyEnd !== -1) {
|
|
200
|
+
declarations.push(source.slice(match.index, bodyEnd + 1));
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
for (const match of code.matchAll(/\bexport\s+(?:default\s+)?(?:abstract\s+)?class(?:\s+[A-Za-z_$][\w$]*)?\b/g)) {
|
|
204
|
+
const bodyStart = source.indexOf('{', match.index);
|
|
205
|
+
if (bodyStart === -1) {
|
|
206
|
+
continue;
|
|
207
|
+
}
|
|
208
|
+
const bodyEnd = findMatchingBrace(source, bodyStart);
|
|
209
|
+
if (bodyEnd !== -1) {
|
|
210
|
+
declarations.push(source.slice(match.index, bodyEnd + 1));
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
for (const match of code.matchAll(/\bexport\s+default\s+(?!class\b|(?:async\s+)?function\b)/g)) {
|
|
214
|
+
const statementEnd = findStatementEnd(source, match.index);
|
|
215
|
+
declarations.push(source.slice(match.index, statementEnd + 1));
|
|
216
|
+
}
|
|
217
|
+
for (const exportMatch of code.matchAll(/\bexport\s+(?:type\s+)?{\s*([^}]+)\s*}/g)) {
|
|
218
|
+
const exportStatementEnd = findStatementEnd(code, exportMatch.index);
|
|
219
|
+
const exportStatement = code.slice(exportMatch.index, exportStatementEnd + 1);
|
|
220
|
+
if (/\bfrom\s*['"]/.test(exportStatement)) {
|
|
221
|
+
continue;
|
|
222
|
+
}
|
|
223
|
+
const exportedNames = exportMatch[1]
|
|
224
|
+
.split(',')
|
|
225
|
+
.map((name) => name
|
|
226
|
+
.trim()
|
|
227
|
+
.replace(/^type\s+/, '')
|
|
228
|
+
.split(/\s+as\s+/)[0]
|
|
229
|
+
?.trim())
|
|
230
|
+
.filter(Boolean);
|
|
231
|
+
for (const exportedName of exportedNames) {
|
|
232
|
+
const declarationMatch = new RegExp(`\\b(?:(?:const|let|var)\\s+${exportedName}\\b|(?:async\\s+)?function\\s+${exportedName}\\b|type\\s+${exportedName}\\b|interface\\s+${exportedName}\\b|(?:abstract\\s+)?class\\s+${exportedName}\\b)`).exec(code);
|
|
233
|
+
if (!declarationMatch) {
|
|
234
|
+
continue;
|
|
235
|
+
}
|
|
236
|
+
if (/\b(?:async\s+)?function\b|\b(?:abstract\s+)?class\b|\binterface\b/.test(declarationMatch[0])) {
|
|
237
|
+
const bodyStart = source.indexOf('{', declarationMatch.index);
|
|
238
|
+
if (bodyStart === -1) {
|
|
239
|
+
continue;
|
|
240
|
+
}
|
|
241
|
+
const bodyEnd = findMatchingBrace(source, bodyStart);
|
|
242
|
+
if (bodyEnd !== -1) {
|
|
243
|
+
declarations.push(source.slice(declarationMatch.index, bodyEnd + 1));
|
|
244
|
+
}
|
|
245
|
+
continue;
|
|
246
|
+
}
|
|
247
|
+
const statementEnd = findStatementEnd(source, declarationMatch.index);
|
|
248
|
+
declarations.push(source.slice(declarationMatch.index, statementEnd + 1));
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
return cacheExportedDeclarations(source, declarations);
|
|
252
|
+
}
|
|
253
|
+
function findAssignmentEquals(declaration) {
|
|
254
|
+
for (let index = 0; index < declaration.length; index++) {
|
|
255
|
+
const char = declaration[index];
|
|
256
|
+
const previousChar = declaration[index - 1];
|
|
257
|
+
const nextChar = declaration[index + 1];
|
|
258
|
+
if (char === '=' &&
|
|
259
|
+
previousChar !== '=' &&
|
|
260
|
+
previousChar !== '!' &&
|
|
261
|
+
previousChar !== '<' &&
|
|
262
|
+
previousChar !== '>' &&
|
|
263
|
+
nextChar !== '=' &&
|
|
264
|
+
nextChar !== '>') {
|
|
265
|
+
return index;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
return -1;
|
|
269
|
+
}
|
|
270
|
+
function exportedDeclarationSegments(source) {
|
|
271
|
+
const cachedValue = exportedDeclarationSegmentCache.get(source);
|
|
272
|
+
if (cachedValue) {
|
|
273
|
+
return cachedValue;
|
|
274
|
+
}
|
|
275
|
+
return cacheExportedDeclarationSegments(source, exportedDeclarationTexts(source).map((declaration) => {
|
|
276
|
+
if (/^\s*export\s+default\b/.test(declaration)) {
|
|
277
|
+
const value = declaration.replace(/^\s*export\s+default\s+/, '');
|
|
278
|
+
const arrowIndex = value.indexOf('=>');
|
|
279
|
+
if (/^\s*(?:async\s*)?(?:\([^)]*\)|[A-Za-z_$][\w$]*)\s*=>/.test(value)) {
|
|
280
|
+
return value.slice(arrowIndex + 2);
|
|
281
|
+
}
|
|
282
|
+
return value;
|
|
283
|
+
}
|
|
284
|
+
if (/^\s*(?:export\s+)?(?:const|let|var)\b/.test(declaration)) {
|
|
285
|
+
const equalsIndex = findAssignmentEquals(declaration);
|
|
286
|
+
const value = equalsIndex === -1 ? declaration : declaration.slice(equalsIndex + 1);
|
|
287
|
+
const arrowIndex = value.indexOf('=>');
|
|
288
|
+
if (/^\s*(?:async\s*)?(?:\([^)]*\)|[A-Za-z_$][\w$]*)\s*=>/.test(value)) {
|
|
289
|
+
return value.slice(arrowIndex + 2);
|
|
290
|
+
}
|
|
291
|
+
return value;
|
|
292
|
+
}
|
|
293
|
+
const bodyStart = declaration.indexOf('{');
|
|
294
|
+
return bodyStart === -1 ? declaration : declaration.slice(bodyStart);
|
|
295
|
+
}));
|
|
296
|
+
}
|
|
297
|
+
function exportedCallableDeclarationSegments(source) {
|
|
298
|
+
const cachedValue = exportedCallableDeclarationSegmentCache.get(source);
|
|
299
|
+
if (cachedValue) {
|
|
300
|
+
return cachedValue;
|
|
301
|
+
}
|
|
302
|
+
return cacheExportedCallableDeclarationSegments(source, exportedDeclarationTexts(source).flatMap((declaration) => {
|
|
303
|
+
if (/^\s*(?:export\s+)?(?:async\s+)?function\b/.test(declaration)) {
|
|
304
|
+
const bodyStart = declaration.indexOf('{');
|
|
305
|
+
return bodyStart === -1 ? [] : [declaration.slice(bodyStart)];
|
|
306
|
+
}
|
|
307
|
+
if (/^\s*export\s+default\b/.test(declaration)) {
|
|
308
|
+
const value = declaration.replace(/^\s*export\s+default\s+/, '');
|
|
309
|
+
if (!/^\s*(?:async\s*)?(?:\([^)]*\)|[A-Za-z_$][\w$]*)\s*=>/.test(value)) {
|
|
310
|
+
return [];
|
|
311
|
+
}
|
|
312
|
+
const arrowIndex = value.indexOf('=>');
|
|
313
|
+
return [value.slice(arrowIndex + 2)];
|
|
314
|
+
}
|
|
315
|
+
if (!/^\s*(?:export\s+)?(?:const|let|var)\b/.test(declaration)) {
|
|
316
|
+
return [];
|
|
317
|
+
}
|
|
318
|
+
const equalsIndex = findAssignmentEquals(declaration);
|
|
319
|
+
const value = equalsIndex === -1 ? declaration : declaration.slice(equalsIndex + 1);
|
|
320
|
+
if (!/^\s*(?:async\s*)?(?:\([^)]*\)|[A-Za-z_$][\w$]*)\s*=>/.test(value)) {
|
|
321
|
+
return [];
|
|
322
|
+
}
|
|
323
|
+
const arrowIndex = value.indexOf('=>');
|
|
324
|
+
return [value.slice(arrowIndex + 2)];
|
|
325
|
+
}));
|
|
326
|
+
}
|
|
327
|
+
function enclosingEffectCallTail(source, targetIndex) {
|
|
328
|
+
for (const match of source.matchAll(/\bEffect\.(?:gen|fn)\s*\(/g)) {
|
|
329
|
+
const openParenIndex = source.indexOf('(', match.index);
|
|
330
|
+
if (openParenIndex === -1 || openParenIndex > targetIndex) {
|
|
331
|
+
continue;
|
|
332
|
+
}
|
|
333
|
+
const endIndex = findBalancedCallEnd(source, openParenIndex);
|
|
334
|
+
if (targetIndex <= endIndex) {
|
|
335
|
+
return source.slice(targetIndex, endIndex + 1);
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
return undefined;
|
|
339
|
+
}
|
|
340
|
+
function sameFunctionTail(source, targetIndex) {
|
|
341
|
+
const effectTail = enclosingEffectCallTail(source, targetIndex);
|
|
342
|
+
if (effectTail) {
|
|
343
|
+
return effectTail;
|
|
344
|
+
}
|
|
345
|
+
const openBrace = findEnclosingBraceOpen(source, targetIndex);
|
|
346
|
+
if (openBrace !== -1) {
|
|
347
|
+
const closeBrace = findMatchingBrace(source, openBrace);
|
|
348
|
+
if (closeBrace !== -1) {
|
|
349
|
+
return source.slice(targetIndex, closeBrace + 1);
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
const tail = source.slice(targetIndex);
|
|
353
|
+
const nextFunction = tail
|
|
354
|
+
.slice(1)
|
|
355
|
+
.search(/\n\s*(?:export\s+)?(?:(?:async\s+)?function\b|const\s+[A-Za-z_$][\w$]*\s*=\s*(?:async\s*)?(?:\([^)]*\)|[A-Za-z_$][\w$]*)?\s*=>)/);
|
|
356
|
+
return nextFunction === -1 ? tail : tail.slice(0, nextFunction + 1);
|
|
357
|
+
}
|
|
358
|
+
export { exportedCallableDeclarationSegments, exportedDeclarationSegments, exportedDeclarationTexts, findBalancedCallEnd, findMatchingBrace, findStatementEnd, isInsideCall, sameFunctionTail, statementAfter, stripComments, stripCommentsAndStrings, };
|
|
359
|
+
//# sourceMappingURL=effect-source-helpers.js.map
|
|
@@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KAAK,CAAC,CAAC,CAAC;SACR,MAAM,CACL,iIAAiI,CAClI,CAAC;IACJ,OAAO,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,YAAY,GAAG,CAAC,CAAC,CAAC;AACtE,CAAC;AAED,OAAO,EACL,mCAAmC,EACnC,2BAA2B,EAC3B,wBAAwB,EACxB,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,EACZ,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,uBAAuB,GACxB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare function isRegexLiteralStart(source: string, index: number): boolean;
|
|
2
|
+
declare function findRegexLiteralEnd(source: string, startIndex: number): number;
|
|
3
|
+
declare function findBalancedCallEnd(source: string, openParenIndex: number): number;
|
|
4
|
+
declare function stripComments(source: string): string;
|
|
5
|
+
declare function stripCommentsAndStrings(source: string): string;
|
|
6
|
+
declare function findMatchingBrace(source: string, openIndex: number): number;
|
|
7
|
+
export { findBalancedCallEnd, findMatchingBrace, findRegexLiteralEnd, isRegexLiteralStart, stripComments, stripCommentsAndStrings, };
|
|
8
|
+
//# sourceMappingURL=effect-source-scan.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"effect-source-scan.d.ts","sourceRoot":"","sources":["../../src/rules/effect-source-scan.ts"],"names":[],"mappings":"AA8DA,iBAAS,mBAAmB,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAanE;AAED,iBAAS,mBAAmB,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAmCvE;AAED,iBAAS,mBAAmB,CAAC,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,MAAM,CAgD3E;AAED,iBAAS,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CA6E7C;AAED,iBAAS,uBAAuB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAuGvD;AAED,iBAAS,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CA+CpE;AAED,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,aAAa,EACb,uBAAuB,GACxB,CAAC"}
|