@thethracian/oxlint-config 0.7.0 → 0.8.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/CHANGELOG.md +39 -1
- package/README.md +76 -54
- package/dist/index.d.ts +1 -18
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -116
- package/dist/index.js.map +1 -1
- package/dist/rules/effect-canonical-patterns.d.ts +3 -0
- package/dist/rules/effect-canonical-patterns.d.ts.map +1 -0
- package/dist/rules/effect-canonical-patterns.js +254 -0
- package/dist/rules/effect-canonical-patterns.js.map +1 -0
- package/dist/rules/effect-canonical-scope.d.ts +5 -0
- package/dist/rules/effect-canonical-scope.d.ts.map +1 -0
- package/dist/rules/effect-canonical-scope.js +46 -0
- package/dist/rules/effect-canonical-scope.js.map +1 -0
- package/dist/rules/effect-default-compat-rules.d.ts +0 -10
- package/dist/rules/effect-default-compat-rules.d.ts.map +1 -1
- package/dist/rules/effect-default-compat-rules.js +0 -21
- package/dist/rules/effect-default-compat-rules.js.map +1 -1
- package/dist/rules/effect-default-env-rules.d.ts +8 -8
- package/dist/rules/effect-default-env-rules.d.ts.map +1 -1
- package/dist/rules/effect-default-env-rules.js +1 -60
- package/dist/rules/effect-default-env-rules.js.map +1 -1
- package/dist/rules/effect-default-helpers.d.ts +1 -5
- package/dist/rules/effect-default-helpers.d.ts.map +1 -1
- package/dist/rules/effect-default-helpers.js +1 -5
- package/dist/rules/effect-default-helpers.js.map +1 -1
- package/dist/rules/effect-default-scan-helpers.d.ts +0 -1
- package/dist/rules/effect-default-scan-helpers.d.ts.map +1 -1
- package/dist/rules/effect-default-scan-helpers.js +1 -1
- package/dist/rules/effect-default-scan-helpers.js.map +1 -1
- package/dist/rules/effect-default-workflow-helpers.d.ts +0 -1
- package/dist/rules/effect-default-workflow-helpers.d.ts.map +1 -1
- package/dist/rules/effect-default-workflow-helpers.js +1 -55
- package/dist/rules/effect-default-workflow-helpers.js.map +1 -1
- package/dist/rules/effect-default.d.ts +1 -1
- package/dist/rules/effect-default.d.ts.map +1 -1
- package/dist/rules/effect-default.js +2 -16
- package/dist/rules/effect-default.js.map +1 -1
- package/dist/rules/effect-path-options.d.ts +1 -55
- package/dist/rules/effect-path-options.d.ts.map +1 -1
- package/dist/rules/effect-path-options.js +1 -126
- package/dist/rules/effect-path-options.js.map +1 -1
- package/dist/rules/effect-rule-names.d.ts +2 -3
- package/dist/rules/effect-rule-names.d.ts.map +1 -1
- package/dist/rules/effect-rule-names.js +9 -72
- package/dist/rules/effect-rule-names.js.map +1 -1
- package/dist/rules/effect-strict-core-specs.d.ts.map +1 -1
- package/dist/rules/effect-strict-core-specs.js +3 -310
- package/dist/rules/effect-strict-core-specs.js.map +1 -1
- package/dist/rules/effect-strict-internals.d.ts +1 -3
- package/dist/rules/effect-strict-internals.d.ts.map +1 -1
- package/dist/rules/effect-strict-internals.js +1 -3
- package/dist/rules/effect-strict-internals.js.map +1 -1
- package/dist/rules/effect-strict-source-predicates.d.ts +1 -20
- package/dist/rules/effect-strict-source-predicates.d.ts.map +1 -1
- package/dist/rules/effect-strict-source-predicates.js +1 -118
- package/dist/rules/effect-strict-source-predicates.js.map +1 -1
- package/dist/rules/effect-strict.d.ts.map +1 -1
- package/dist/rules/effect-strict.js +1 -6
- package/dist/rules/effect-strict.js.map +1 -1
- package/dist/rules/no-module-mocking.d.ts.map +1 -1
- package/dist/rules/no-module-mocking.js +15 -22
- package/dist/rules/no-module-mocking.js.map +1 -1
- package/dist/rules/no-widen-then-assert.d.ts.map +1 -1
- package/dist/rules/no-widen-then-assert.js +79 -52
- package/dist/rules/no-widen-then-assert.js.map +1 -1
- package/dist/rules/plugin.d.ts.map +1 -1
- package/dist/rules/plugin.js +0 -2
- package/dist/rules/plugin.js.map +1 -1
- package/dist/rules/shared/dictionary-types.d.ts.map +1 -1
- package/dist/rules/shared/dictionary-types.js +48 -25
- package/dist/rules/shared/dictionary-types.js.map +1 -1
- package/dist/rules/shared/lexical-type-parameters.d.ts.map +1 -1
- package/dist/rules/shared/lexical-type-parameters.js +8 -5
- package/dist/rules/shared/lexical-type-parameters.js.map +1 -1
- package/package.json +1 -1
- package/dist/rules/effect-default-schema-helpers.d.ts +0 -5
- package/dist/rules/effect-default-schema-helpers.d.ts.map +0 -1
- package/dist/rules/effect-default-schema-helpers.js +0 -191
- package/dist/rules/effect-default-schema-helpers.js.map +0 -1
- package/dist/rules/effect-default-test-helpers.d.ts +0 -4
- package/dist/rules/effect-default-test-helpers.d.ts.map +0 -1
- package/dist/rules/effect-default-test-helpers.js +0 -81
- package/dist/rules/effect-default-test-helpers.js.map +0 -1
- package/dist/rules/effect-global-fetch-ast-traversal.d.ts +0 -4
- package/dist/rules/effect-global-fetch-ast-traversal.d.ts.map +0 -1
- package/dist/rules/effect-global-fetch-ast-traversal.js +0 -92
- package/dist/rules/effect-global-fetch-ast-traversal.js.map +0 -1
- package/dist/rules/effect-global-fetch-ast.d.ts +0 -3
- package/dist/rules/effect-global-fetch-ast.d.ts.map +0 -1
- package/dist/rules/effect-global-fetch-ast.js +0 -304
- package/dist/rules/effect-global-fetch-ast.js.map +0 -1
- package/dist/rules/effect-global-fetch-imports.d.ts +0 -10
- package/dist/rules/effect-global-fetch-imports.d.ts.map +0 -1
- package/dist/rules/effect-global-fetch-imports.js +0 -75
- package/dist/rules/effect-global-fetch-imports.js.map +0 -1
- package/dist/rules/effect-schema-no-redundant-tag-identifier.d.ts +0 -4
- package/dist/rules/effect-schema-no-redundant-tag-identifier.d.ts.map +0 -1
- package/dist/rules/effect-schema-no-redundant-tag-identifier.js +0 -109
- package/dist/rules/effect-schema-no-redundant-tag-identifier.js.map +0 -1
- package/dist/rules/effect-strict-ast-helpers.d.ts +0 -28
- package/dist/rules/effect-strict-ast-helpers.d.ts.map +0 -1
- package/dist/rules/effect-strict-ast-helpers.js +0 -132
- package/dist/rules/effect-strict-ast-helpers.js.map +0 -1
- package/dist/rules/effect-strict-ast-specs.d.ts +0 -3
- package/dist/rules/effect-strict-ast-specs.d.ts.map +0 -1
- package/dist/rules/effect-strict-ast-specs.js +0 -157
- package/dist/rules/effect-strict-ast-specs.js.map +0 -1
- package/dist/rules/effect-strict-boundary-helpers.d.ts +0 -5
- package/dist/rules/effect-strict-boundary-helpers.d.ts.map +0 -1
- package/dist/rules/effect-strict-boundary-helpers.js +0 -68
- package/dist/rules/effect-strict-boundary-helpers.js.map +0 -1
- package/dist/rules/effect-strict-external-helpers.d.ts +0 -10
- package/dist/rules/effect-strict-external-helpers.d.ts.map +0 -1
- package/dist/rules/effect-strict-external-helpers.js +0 -50
- package/dist/rules/effect-strict-external-helpers.js.map +0 -1
- package/dist/rules/effect-strict-helpers.d.ts +0 -16
- package/dist/rules/effect-strict-helpers.d.ts.map +0 -1
- package/dist/rules/effect-strict-helpers.js +0 -121
- package/dist/rules/effect-strict-helpers.js.map +0 -1
- package/dist/rules/effect-strict-segment-helpers.d.ts +0 -14
- package/dist/rules/effect-strict-segment-helpers.d.ts.map +0 -1
- package/dist/rules/effect-strict-segment-helpers.js +0 -201
- package/dist/rules/effect-strict-segment-helpers.js.map +0 -1
- package/dist/rules/effect-strict-wrapper-index.d.ts +0 -6
- package/dist/rules/effect-strict-wrapper-index.d.ts.map +0 -1
- package/dist/rules/effect-strict-wrapper-index.js +0 -147
- package/dist/rules/effect-strict-wrapper-index.js.map +0 -1
- package/dist/rules/no-comments.d.ts +0 -2
- package/dist/rules/no-comments.d.ts.map +0 -1
- package/dist/rules/no-comments.js +0 -22
- package/dist/rules/no-comments.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"effect-default-scan-helpers.js","sourceRoot":"","sources":["../../src/rules/effect-default-scan-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACpD,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,aAAa,EACb,uBAAuB,GACxB,MA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EAAE,EACpC,6BAA6B,CAAC,MAAM,CAAC,CACtC,CAAC;IACJ,MAAM,aAAa,GAAG,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAC/C,IAAI,aAAa,KAAK,SAAS,EAAE,CAAC;QAChC,OAAO,aAAa,CAAC;IACvB,CAAC;IACD,MAAM,OAAO,GAAG,IAAI,MAAM,CACxB,mBAAmB,oBAAoB,CAAC,MAAM,CAAC,UAAU,OAAO,UAAU,EAC1E,GAAG,CACJ,CAAC;IACF,WAAW,CAAC,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,uBAAuB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IAC7E,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEF,MAAM,
|
|
1
|
+
{"version":3,"file":"effect-default-scan-helpers.js","sourceRoot":"","sources":["../../src/rules/effect-default-scan-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACpD,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,aAAa,EACb,uBAAuB,GACxB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAEzE,MAAM,wBAAwB,GAAG,GAAG,CAAC;AACrC,MAAM,kBAAkB,GAAG,IAAI,CAAC;AAChC,MAAM,kBAAkB,GAAG,kBAAkB,GAAG,kBAAkB,CAAC;AACnE,MAAM,mCAAmC,GAAG,CAAC,CAAC;AAC9C,MAAM,oCAAoC,GAAG,GAAG,CAAC;AACjD,MAAM,uCAAuC,GAAG,kBAAkB,CAAC;AACnE,MAAM,oCAAoC,GACxC,mCAAmC,GAAG,kBAAkB,CAAC;AAC3D,MAAM,qC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AC;QAC/B,IAAI,KAAK,CAAC,KAAK,GAAG,eAAe,EAAE,CAAC;YAClC,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,MAAc,EAAE,WAAmB,EAAU,EAAE,CACjF,aAAa,CAAC,gBAAgB,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export declare const hasUnboundedEffectConcurrency: (source: string) => boolean;
|
|
2
2
|
export declare const hasUnboundedFlatMapConcurrency: (source: string) => boolean;
|
|
3
|
-
export declare const hasParsedJSONNumberFromString: (source: string) => boolean;
|
|
4
3
|
export declare const hasReturnEffectInGen: (source: string) => boolean;
|
|
5
4
|
export declare const hasYieldWithoutStarInGen: (source: string) => boolean | number;
|
|
6
5
|
export declare const hasTryPromiseWithoutTypedCatch: (source: string) => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"effect-default-workflow-helpers.d.ts","sourceRoot":"","sources":["../../src/rules/effect-default-workflow-helpers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"effect-default-workflow-helpers.d.ts","sourceRoot":"","sources":["../../src/rules/effect-default-workflow-helpers.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,6BAA6B,GAAI,QAAQ,MAAM,KAAG,OAU9D,CAAC;AAEF,eAAO,MAAM,8BAA8B,GAAI,QAAQ,MAAM,KAAG,OAU/D,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,QAAQ,MAAM,KAAG,OAMrD,CAAC;AA2BF,eAAO,MAAM,wBAAwB,GAAI,QAAQ,MAAM,KAAG,OAAO,GAAG,MAQnE,CAAC;AA0CF,eAAO,MAAM,8BAA8B,GAAI,QAAQ,MAAM,KAAG,OAqB/D,CAAC;AAEF,eAAO,MAAM,gCAAgC,6BAA2B,CAAC"}
|
|
@@ -1,48 +1,7 @@
|
|
|
1
1
|
import { Array, Match, Option, pipe } from 'effect';
|
|
2
2
|
import { effectAliasesPattern, effectCallPattern, someEffectGenBodyMatch, strippedCallSegment, } from './effect-default-scan-helpers.js';
|
|
3
|
-
import { findBalancedCallEnd, findMatchingBrace,
|
|
3
|
+
import { findBalancedCallEnd, findMatchingBrace, stripComments, stripCommentsAndStrings, } from './effect-source-helpers.js';
|
|
4
4
|
import { hasRecursiveEffectSource } from './effect-recursion-source.js';
|
|
5
|
-
const JSON_PARSE_PATTERN = /\bJSON\.parse\s*\(/g;
|
|
6
|
-
const JSON_NUMBER_FROM_STRING_PATTERN = /\b(?:[A-Za-z_$][\w$]*NumberFromString|Schema\.NumberFromString)\b/g;
|
|
7
|
-
const firstIndexAtOrAfter = (indexes, targetIndex) => {
|
|
8
|
-
let low = 0;
|
|
9
|
-
let high = indexes.length;
|
|
10
|
-
while (low < high) {
|
|
11
|
-
const middle = (low + high) >> 1;
|
|
12
|
-
if ((indexes[middle] ?? Number.POSITIVE_INFINITY) < targetIndex) {
|
|
13
|
-
low = middle + 1;
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
high = middle;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
return low;
|
|
20
|
-
};
|
|
21
|
-
const matchIndexes = (code, pattern) => {
|
|
22
|
-
const indexes = [];
|
|
23
|
-
for (const match of code.matchAll(pattern)) {
|
|
24
|
-
indexes.push(match.index);
|
|
25
|
-
}
|
|
26
|
-
return indexes;
|
|
27
|
-
};
|
|
28
|
-
const statementStartScanner = (code) => {
|
|
29
|
-
let scanIndex = 0;
|
|
30
|
-
let statementStart = 0;
|
|
31
|
-
return (matchIndex) => {
|
|
32
|
-
while (scanIndex < matchIndex) {
|
|
33
|
-
if (code[scanIndex] === ';' || code[scanIndex] === '\n') {
|
|
34
|
-
statementStart = scanIndex + 1;
|
|
35
|
-
}
|
|
36
|
-
scanIndex += 1;
|
|
37
|
-
}
|
|
38
|
-
return statementStart;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
const hasIndexAtOrBefore = (indexes, startIndex, endIndex) => {
|
|
42
|
-
const firstIndex = firstIndexAtOrAfter(indexes, startIndex);
|
|
43
|
-
const index = indexes[firstIndex];
|
|
44
|
-
return index !== undefined && index <= endIndex;
|
|
45
|
-
};
|
|
46
5
|
export const hasUnboundedEffectConcurrency = (source) => {
|
|
47
6
|
const code = stripCommentsAndStrings(source);
|
|
48
7
|
return pipe(Array.fromIterable(code.matchAll(/\bEffect\.(?:forEach|all)\s*\(/g)), Array.some((match) => /\{[\s\S]*?\bconcurrency\s*:\s*['"]unbounded['"]/.test(strippedCallSegment(source, match.index))));
|
|
@@ -51,19 +10,6 @@ export const hasUnboundedFlatMapConcurrency = (source) => {
|
|
|
51
10
|
const code = stripCommentsAndStrings(source);
|
|
52
11
|
return pipe(Array.fromIterable(code.matchAll(/\bEffect\.flatMap\s*\(/g)), Array.some((match) => /\{[\s\S]*?\bconcurrency\s*:\s*['"]unbounded['"]/.test(strippedCallSegment(source, match.index))));
|
|
53
12
|
};
|
|
54
|
-
export const hasParsedJSONNumberFromString = (source) => {
|
|
55
|
-
const code = stripCommentsAndStrings(source);
|
|
56
|
-
const numberFromStringIndexes = matchIndexes(code, JSON_NUMBER_FROM_STRING_PATTERN);
|
|
57
|
-
const getStatementStart = statementStartScanner(code);
|
|
58
|
-
for (const match of code.matchAll(JSON_PARSE_PATTERN)) {
|
|
59
|
-
const statementStart = getStatementStart(match.index);
|
|
60
|
-
const statementEnd = findStatementEnd(code, statementStart);
|
|
61
|
-
if (hasIndexAtOrBefore(numberFromStringIndexes, statementStart, statementEnd)) {
|
|
62
|
-
return true;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
return false;
|
|
66
|
-
};
|
|
67
13
|
export const hasReturnEffectInGen = (source) => {
|
|
68
14
|
const returnEffectPattern = new RegExp(`\\breturn\\s+(?:${effectAliasesPattern(source)})\\.(?!isEffect\\b|serviceFunction\\b)`, 'g');
|
|
69
15
|
return someEffectGenBodyMatch(source, returnEffectPattern);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"effect-default-workflow-helpers.js","sourceRoot":"","sources":["../../src/rules/effect-default-workflow-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACpD,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,sBAAsB,EACtB,mBAAmB,GACpB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EACjB,
|
|
1
|
+
{"version":3,"file":"effect-default-workflow-helpers.js","sourceRoot":"","sources":["../../src/rules/effect-default-workflow-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACpD,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,sBAAsB,EACtB,mBAAmB,GACpB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EACjB,aAAa,EACb,uBAAuB,GACxB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAOrE,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,MAAc,EAAW,EAAE;IACvE,MAAM,IAAI,GAAG,uBAAuB,CAAC,MAAM,CAAC,CAAC;IAC7C,OAAO,IAAI,CACT,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,iCAAiC,CAAC,CAAC,EACpE,KAAK,CAAC,IAAI,CAAC,CAAC,KAAK,EAAW,EAAE,CAC5B,iDAAiD,CAAC,IAAI,CACpD,mBAAmB,CAAC,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,CACzC,CACF,CACF,CAAC;AACJ,CAAC,CAAC;A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AE,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAC1D,CAAC;AACJ,CAAC,CAAC,CACH,CAAC;AAEJ,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,MAAc,EAAW,EAAE;IACxE,MAAM,IAAI,GAAG,uBAAuB,CAAC,MAAM,CAAC,CAAC;IAC7C,OAAO,KAAK,CAAC,KAAK,CAChB,8EAA8E,CAAC,IAAI,CAAC,IAAI,CAAC,CAC1F,CAAC,IAAI,CACJ,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,GAAY,EAAE,CAAC,IAAI,CAAC,EACrC,KAAK,CAAC,MAAM,CAAC,GAAY,EAAE,CACzB,IAAI,CACF,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,8BAA8B,CAAC,CAAC,EACjE,KAAK,CAAC,IAAI,CAAC,CAAC,KAAK,EAAW,EAAE;QAC5B,MAAM,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;QACnD,OAAO,IAAI,CACT,MAAM,CAAC,YAAY,CAAC,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC,EACpE,MAAM,CAAC,MAAM,CAAC,CAAC,UAAU,EAAW,EAAE,CACpC,6BAA6B,CAAC,UAAU,CAAC,IAAI,EAAE,UAAU,CAAC,OAAO,CAAC,CACnE,CACF,CAAC;IACJ,CAAC,CAAC,CACH,CACF,CACF,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gCAAgC,GAAG,wBAAwB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"effect-default.d.ts","sourceRoot":"","sources":["../../src/rules/effect-default.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"effect-default.d.ts","sourceRoot":"","sources":["../../src/rules/effect-default.ts"],"names":[],"mappings":"AAoGA,QAAA,MAAM,kBAAkB;;CAIvB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { effectRecursionAST } from './effect-recursion-ast.js';
|
|
2
2
|
import { hasErrorMappingWithoutCause, hasFloatingEffect, hasRecursiveEffectWithoutSuspend, hasReturnEffectInGen, hasRunForkWithoutObserver, hasTryPromiseWithoutTypedCatch, hasUnobservedFork, hasYieldWithoutStarInGen, } from './effect-default-helpers.js';
|
|
3
3
|
import { makeRules } from './effect-rule-core.js';
|
|
4
|
-
import schemaNoRedundantTagIdentifierRule from './effect-schema-no-redundant-tag-identifier.js';
|
|
5
4
|
import { effectDefaultCompatibilitySpecs } from './effect-default-compat-rules.js';
|
|
6
5
|
import { effectDefaultEnvironmentSpecs } from './effect-default-env-rules.js';
|
|
7
|
-
import {
|
|
6
|
+
import { effectCanonicalSpecs } from './effect-canonical-patterns.js';
|
|
8
7
|
const effectDefaultRuleTokens = [
|
|
9
8
|
'Effect',
|
|
10
9
|
'Schema',
|
|
@@ -68,24 +67,12 @@ const effectDefaultSpecs = [
|
|
|
68
67
|
name: 'effect-require-typed-error-in-trypromise',
|
|
69
68
|
tokens: ['tryPromise'],
|
|
70
69
|
},
|
|
71
|
-
{
|
|
72
|
-
message: 'Use mapError directly instead of catchAll when only transforming the error.',
|
|
73
|
-
name: 'effect-no-catchAll-with-mapError',
|
|
74
|
-
patterns: [/Effect\.catchAll\s*\([\s\S]*?=>\s*Effect\.fail\s*\(/],
|
|
75
|
-
tokens: ['catchAll'],
|
|
76
|
-
},
|
|
77
70
|
{
|
|
78
71
|
check: hasErrorMappingWithoutCause,
|
|
79
72
|
message: 'Preserve the original cause when mapping or wrapping Effect errors.',
|
|
80
73
|
name: 'effect-require-error-cause-preserved',
|
|
81
74
|
tokens: ['mapError', 'catchAll'],
|
|
82
75
|
},
|
|
83
|
-
{
|
|
84
|
-
message: 'Do not widen Effect error channels to unknown.',
|
|
85
|
-
name: 'effect-no-error-channel-widening-to-unknown',
|
|
86
|
-
patterns: [/Effect\s*<[^>]*,\s*unknown\b/, /Effect\.fail\s*<\s*unknown\b/],
|
|
87
|
-
tokens: ['unknown'],
|
|
88
|
-
},
|
|
89
76
|
{
|
|
90
77
|
check: hasRunForkWithoutObserver,
|
|
91
78
|
message: 'Do not call runFork without explicit observation, supervision, or interruption.',
|
|
@@ -94,13 +81,12 @@ const effectDefaultSpecs = [
|
|
|
94
81
|
},
|
|
95
82
|
...effectDefaultEnvironmentSpecs,
|
|
96
83
|
...effectDefaultCompatibilitySpecs,
|
|
84
|
+
...effectCanonicalSpecs,
|
|
97
85
|
];
|
|
98
86
|
const effectDefaultRules = {
|
|
99
87
|
...makeRules(effectDefaultSpecs, {
|
|
100
88
|
defaultTokens: effectDefaultRuleTokens,
|
|
101
|
-
schema: strictPathOptionsSchema,
|
|
102
89
|
}),
|
|
103
|
-
'effect-schema-no-redundant-tag-identifier': schemaNoRedundantTagIdentifierRule,
|
|
104
90
|
};
|
|
105
91
|
export default effectDefaultRules;
|
|
106
92
|
//# sourceMappingURL=effect-default.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"effect-default.js","sourceRoot":"","sources":["../../src/rules/effect-default.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EACL,2BAA2B,EAC3B,iBAAiB,EACjB,gCAAgC,EAChC,oBAAoB,EACpB,yBAAyB,EACzB,8BAA8B,EAC9B,iBAAiB,EACjB,wBAAwB,GACzB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,
|
|
1
|
+
{"version":3,"file":"effect-default.js","sourceRoot":"","sources":["../../src/rules/effect-default.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EACL,2BAA2B,EAC3B,iBAAiB,EACjB,gCAAgC,EAChC,o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AC,UAAU,EAAE,IAAI,CAAC;KAC3B;IACD;QACE,OAAO,EACL,wFAAwF;QAC1F,IAAI,EAAE,mCAAmC;QACzC,QAAQ,EAAE;YACR,qGAAqG;SACtG;QACD,MAAM,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC;KAC/B;IACD;QACE,KAAK,EAAE,8BAA8B;QACrC,OAAO,EACL,uFAAuF;QACzF,IAAI,EAAE,0CAA0C;QAChD,MAAM,EAAE,CAAC,YAAY,CAAC;KACvB;IACD;QACE,KAAK,EAAE,2BAA2B;QAClC,OAAO,EAAE,qEAAqE;QAC9E,IAAI,EAAE,sCAAsC;QAC5C,MAAM,EAAE,CAAC,UAAU,EAAE,UAAU,CAAC;KACjC;IACD;QACE,KAAK,EAAE,yBAAyB;QAChC,OAAO,EAAE,iFAAiF;QAC1F,IAAI,EAAE,oCAAoC;QAC1C,MAAM,EAAE,CAAC,SAAS,CAAC;KACpB;IACD,GAAG,6BAA6B;IAChC,GAAG,+BAA+B;IAClC,GAAG,oBAAoB;CACM,CAAC;AAEhC,MAAM,kBAAkB,GAAG;IACzB,GAAG,SAAS,CAAC,kBAAkB,EAAE;QAC/B,aAAa,EAAE,uBAAuB;KACvC,CAAC;CACH,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,57 +1,3 @@
|
|
|
1
1
|
import type { Context } from './effect-rule-core';
|
|
2
|
-
export
|
|
3
|
-
export type StrictPathOptions = Partial<Record<StrictPathOptionKey, readonly string[]>>;
|
|
4
|
-
export declare const strictPathOptionKeys: readonly ["adapterLayers", "compositionRoots", "configLayers", "domain", "entrypoints", "integrationTests", "unitTests"];
|
|
5
|
-
export declare const strictPathOptionsSchema: readonly [{
|
|
6
|
-
readonly additionalProperties: false;
|
|
7
|
-
readonly properties: {
|
|
8
|
-
readonly adapterLayers: {
|
|
9
|
-
readonly items: {
|
|
10
|
-
readonly type: "string";
|
|
11
|
-
};
|
|
12
|
-
readonly type: "array";
|
|
13
|
-
};
|
|
14
|
-
readonly compositionRoots: {
|
|
15
|
-
readonly items: {
|
|
16
|
-
readonly type: "string";
|
|
17
|
-
};
|
|
18
|
-
readonly type: "array";
|
|
19
|
-
};
|
|
20
|
-
readonly configLayers: {
|
|
21
|
-
readonly items: {
|
|
22
|
-
readonly type: "string";
|
|
23
|
-
};
|
|
24
|
-
readonly type: "array";
|
|
25
|
-
};
|
|
26
|
-
readonly domain: {
|
|
27
|
-
readonly items: {
|
|
28
|
-
readonly type: "string";
|
|
29
|
-
};
|
|
30
|
-
readonly type: "array";
|
|
31
|
-
};
|
|
32
|
-
readonly entrypoints: {
|
|
33
|
-
readonly items: {
|
|
34
|
-
readonly type: "string";
|
|
35
|
-
};
|
|
36
|
-
readonly type: "array";
|
|
37
|
-
};
|
|
38
|
-
readonly integrationTests: {
|
|
39
|
-
readonly items: {
|
|
40
|
-
readonly type: "string";
|
|
41
|
-
};
|
|
42
|
-
readonly type: "array";
|
|
43
|
-
};
|
|
44
|
-
readonly unitTests: {
|
|
45
|
-
readonly items: {
|
|
46
|
-
readonly type: "string";
|
|
47
|
-
};
|
|
48
|
-
readonly type: "array";
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
readonly type: "object";
|
|
52
|
-
}];
|
|
53
|
-
export declare const sanitizeStrictPathOptions: (options: StrictPathOptions | undefined) => StrictPathOptions | undefined;
|
|
54
|
-
export declare const isConfiguredPath: (context: Pick<Context, "filename" | "options">, key: StrictPathOptionKey) => boolean;
|
|
55
|
-
export declare const isUnitTestPath: (context: Pick<Context, "filename" | "options">) => boolean;
|
|
56
|
-
export declare const isEffectTestPath: (context: Pick<Context, "filename" | "options">) => boolean;
|
|
2
|
+
export declare const isEffectTestPath: (context: Pick<Context, "filename">) => boolean;
|
|
57
3
|
//# sourceMappingURL=effect-path-options.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"effect-path-options.d.ts","sourceRoot":"","sources":["../../src/rules/effect-path-options.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"effect-path-options.d.ts","sourceRoot":"","sources":["../../src/rules/effect-path-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD,eAAO,MAAM,gBAAgB,GAAI,SAAS,IAAI,CAAC,OAAO,EAAE,UAAU,CAAC,KAAG,OACM,CAAC"}
|
|
@@ -1,127 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { isASTObject } from './effect-ast.js';
|
|
3
|
-
import { createWeightedCache } from './source-cache.js';
|
|
4
|
-
export const strictPathOptionKeys = [
|
|
5
|
-
'adapterLayers',
|
|
6
|
-
'compositionRoots',
|
|
7
|
-
'configLayers',
|
|
8
|
-
'domain',
|
|
9
|
-
'entrypoints',
|
|
10
|
-
'integrationTests',
|
|
11
|
-
'unitTests',
|
|
12
|
-
];
|
|
13
|
-
export const strictPathOptionsSchema = [
|
|
14
|
-
{
|
|
15
|
-
additionalProperties: false,
|
|
16
|
-
properties: {
|
|
17
|
-
adapterLayers: { items: { type: 'string' }, type: 'array' },
|
|
18
|
-
compositionRoots: { items: { type: 'string' }, type: 'array' },
|
|
19
|
-
configLayers: { items: { type: 'string' }, type: 'array' },
|
|
20
|
-
domain: { items: { type: 'string' }, type: 'array' },
|
|
21
|
-
entrypoints: { items: { type: 'string' }, type: 'array' },
|
|
22
|
-
integrationTests: { items: { type: 'string' }, type: 'array' },
|
|
23
|
-
unitTests: { items: { type: 'string' }, type: 'array' },
|
|
24
|
-
},
|
|
25
|
-
type: 'object',
|
|
26
|
-
},
|
|
27
|
-
];
|
|
28
|
-
const defaultPathOptions = {
|
|
29
|
-
adapterLayers: ['src/adapters/**', 'src/platform/**', 'src/infrastructure/**'],
|
|
30
|
-
compositionRoots: ['src/main.ts', 'src/server.ts', 'src/cli.ts', '**/*.entry.ts'],
|
|
31
|
-
configLayers: ['src/config/**', 'src/layers/**', 'src/infrastructure/**'],
|
|
32
|
-
domain: ['src/domain/**', 'src/core/**', 'src/features/**'],
|
|
33
|
-
entrypoints: ['src/main.ts', 'src/server.ts', 'src/cli.ts', '**/*.entry.ts'],
|
|
34
|
-
integrationTests: ['**/*.integration.test.ts', '**/*.integration.spec.ts'],
|
|
35
|
-
unitTests: ['**/*.test.ts', '**/*.spec.ts', '**/*.test.tsx', '**/*.spec.tsx'],
|
|
36
|
-
};
|
|
37
|
-
const GLOB_CACHE_MAX = 128;
|
|
38
|
-
const BYTES_PER_MEBIBYTE = 1_048_576;
|
|
39
|
-
const GLOB_CACHE_MAX_MEBIBYTES = 5;
|
|
40
|
-
const GLOB_CACHE_MAX_WEIGHT = GLOB_CACHE_MAX_MEBIBYTES * BYTES_PER_MEBIBYTE;
|
|
41
|
-
const UTF16_CODE_UNIT_BYTES = 2;
|
|
42
|
-
const CACHE_ENTRY_BYTES = 128;
|
|
43
|
-
const STRING_CONTAINER_BYTES = 128;
|
|
44
|
-
const REGEXP_BYTES = 128;
|
|
45
|
-
const escapeRegExp = (value) => value.replace(/[.*+?^${}()|[\]\\]/g, String.raw `\$&`);
|
|
46
|
-
const globCache = createWeightedCache({
|
|
47
|
-
maxEntries: GLOB_CACHE_MAX,
|
|
48
|
-
maxWeight: GLOB_CACHE_MAX_WEIGHT,
|
|
49
|
-
});
|
|
50
|
-
const bytesForUTF16 = (value) => value.length * UTF16_CODE_UNIT_BYTES;
|
|
51
|
-
const globCacheWeight = (pattern, matcher) => bytesForUTF16(pattern) +
|
|
52
|
-
STRING_CONTAINER_BYTES +
|
|
53
|
-
bytesForUTF16(matcher.source) +
|
|
54
|
-
STRING_CONTAINER_BYTES +
|
|
55
|
-
REGEXP_BYTES +
|
|
56
|
-
CACHE_ENTRY_BYTES;
|
|
57
|
-
const globToken = (pattern, index) => {
|
|
58
|
-
const char = pattern[index];
|
|
59
|
-
const nextChar = pattern[index + 1];
|
|
60
|
-
const afterNextChar = pattern[index + 2];
|
|
61
|
-
if (char === '*' && nextChar === '*' && afterNextChar === '/') {
|
|
62
|
-
return { index: index + 2, text: '(?:.*/)?' };
|
|
63
|
-
}
|
|
64
|
-
if (char === '*' && nextChar === '*') {
|
|
65
|
-
return { index: index + 1, text: '.*' };
|
|
66
|
-
}
|
|
67
|
-
if (char === '*') {
|
|
68
|
-
return { index, text: '[^/]*' };
|
|
69
|
-
}
|
|
70
|
-
return { index, text: escapeRegExp(char ?? '') };
|
|
71
|
-
};
|
|
72
|
-
const globBody = (normalizedPattern) => {
|
|
73
|
-
const parts = [];
|
|
74
|
-
let index = 0;
|
|
75
|
-
while (index < normalizedPattern.length) {
|
|
76
|
-
const token = globToken(normalizedPattern, index);
|
|
77
|
-
parts.push(token.text);
|
|
78
|
-
index = token.index + 1;
|
|
79
|
-
}
|
|
80
|
-
return parts.join('');
|
|
81
|
-
};
|
|
82
|
-
const globPrefix = (normalizedPattern) => Match.value(normalizedPattern.startsWith('/')).pipe(Match.when(true, () => '^'), Match.orElse(() => '(?:^|/)'));
|
|
83
|
-
const globToRegExp = (pattern) => {
|
|
84
|
-
const cached = globCache.get(pattern);
|
|
85
|
-
return pipe(Option.fromNullable(cached), Option.match({
|
|
86
|
-
onNone: () => {
|
|
87
|
-
const normalizedPattern = pattern.replace(/\\/g, '/').replace(/^\.\//, '');
|
|
88
|
-
const matcher = new RegExp(`${globPrefix(normalizedPattern)}${globBody(normalizedPattern)}$`);
|
|
89
|
-
return globCache.set(pattern, matcher, globCacheWeight(pattern, matcher));
|
|
90
|
-
},
|
|
91
|
-
onSome: (matcher) => matcher,
|
|
92
|
-
}));
|
|
93
|
-
};
|
|
94
|
-
const matchesPath = (filename, pattern) => pipe(Option.fromNullable(filename), Option.exists((value) => globToRegExp(pattern).test(value.replace(/\\/g, '/'))));
|
|
95
|
-
const isReadonlyStringArray = (value) => Array.isArray(value) && pipe(value, Array.every(Predicate.isString));
|
|
96
|
-
const emptyStrictPathOptions = {};
|
|
97
|
-
const strictOptionsFromUnknown = (options) => pipe(strictPathOptionKeys, Array.reduce(emptyStrictPathOptions, (current, optionKey) => {
|
|
98
|
-
const optionValue = options[optionKey];
|
|
99
|
-
return pipe(Option.fromNullable(optionValue), Option.filter(isReadonlyStringArray), Option.match({
|
|
100
|
-
onNone: () => current,
|
|
101
|
-
onSome: (optionArray) => {
|
|
102
|
-
const next = { ...current };
|
|
103
|
-
next[optionKey] = optionArray;
|
|
104
|
-
return next;
|
|
105
|
-
},
|
|
106
|
-
}));
|
|
107
|
-
}));
|
|
108
|
-
const getStrictOptions = (context) => {
|
|
109
|
-
const options = context.options?.[0];
|
|
110
|
-
return pipe(Option.fromNullable(options), Option.filter(isASTObject), Option.map(strictOptionsFromUnknown), Option.getOrElse(() => ({})));
|
|
111
|
-
};
|
|
112
|
-
export const sanitizeStrictPathOptions = (options) => pipe(Option.fromNullable(options), Option.flatMap((value) => {
|
|
113
|
-
const sanitized = pipe(strictPathOptionKeys, Array.reduce(emptyStrictPathOptions, (current, optionKey) => Match.value(Object.hasOwn(value, optionKey)).pipe(Match.when((hasOption) => hasOption, () => {
|
|
114
|
-
const next = { ...current };
|
|
115
|
-
next[optionKey] = value[optionKey];
|
|
116
|
-
return next;
|
|
117
|
-
}), Match.orElse(() => current))));
|
|
118
|
-
return Match.value(Object.keys(sanitized).length).pipe(Match.when((length) => length === 0, () => Option.none()), Match.orElse(() => Option.some(sanitized)));
|
|
119
|
-
}), Option.getOrUndefined);
|
|
120
|
-
export const isConfiguredPath = (context, key) => {
|
|
121
|
-
const configuredPatterns = getStrictOptions(context)[key];
|
|
122
|
-
const patterns = configuredPatterns ?? defaultPathOptions[key];
|
|
123
|
-
return pipe(patterns, Array.some((pattern) => matchesPath(context.filename, pattern)));
|
|
124
|
-
};
|
|
125
|
-
export const isUnitTestPath = (context) => isConfiguredPath(context, 'unitTests') && !isConfiguredPath(context, 'integrationTests');
|
|
126
|
-
export const isEffectTestPath = (context) => isConfiguredPath(context, 'unitTests') || isConfiguredPath(context, 'integrationTests');
|
|
1
|
+
export const isEffectTestPath = (context) => /\.(?:test|spec)\.tsx?$/.test(context.filename?.replace(/\\/g, '/') ?? '');
|
|
127
2
|
//# sourceMappingURL=effect-path-options.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"effect-path-options.js","sourceRoot":"","sources":["../../src/rules/effect-path-options.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"effect-path-options.js","sourceRoot":"","sources":["../../src/rules/effect-path-options.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,OAAkC,EAAW,EAAE,CAC9E,wBAAwB,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export declare const effectSafetyRuleNames: readonly ["effect-no-floating-effect", "effect-require-yield-star", "effect-require-return-yield-star", "effect-no-floating-fiber", "effect-require-suspend-for-recursion", "effect-no-silent-error-swallowing", "effect-require-typed-error-in-trypromise", "effect-require-error-cause-preserved", "effect-no-runfork-without-observer", "effect-require-acquire-release", "effect-require-scoped-for-acquireRelease", "effect-require-scoped-for-resources", "effect-no-fork-daemon-without-cleanup", "effect-require-restore-for-fork-in-uninterruptible", "effect-require-bounded-concurrency", "effect-require-bounded-flatMap-concurrency", "effect-no-unbounded-queue", "effect-no-unbounded-stream-buffer"];
|
|
2
|
-
export declare const effectDefaultRuleNames: readonly ["effect-no-floating-effect", "effect-require-yield-star", "effect-require-return-yield-star", "effect-no-floating-fiber", "effect-require-suspend-for-recursion", "effect-no-silent-error-swallowing", "effect-require-typed-error-in-trypromise", "effect-
|
|
3
|
-
export declare const effectStrictRuleNames: readonly ["effect-no-
|
|
4
|
-
export type EffectStrictRuleName = (typeof effectStrictRuleNames)[number];
|
|
2
|
+
export declare const effectDefaultRuleNames: readonly ["effect-no-floating-effect", "effect-require-yield-star", "effect-require-return-yield-star", "effect-no-floating-fiber", "effect-require-suspend-for-recursion", "effect-no-silent-error-swallowing", "effect-require-typed-error-in-trypromise", "effect-require-error-cause-preserved", "effect-no-runfork-without-observer", "effect-require-acquire-release", "effect-require-scoped-for-acquireRelease", "effect-require-scoped-for-resources", "effect-no-fork-daemon-without-cleanup", "effect-require-restore-for-fork-in-uninterruptible", "effect-require-bounded-concurrency", "effect-require-bounded-flatMap-concurrency", "effect-no-unbounded-queue", "effect-no-unbounded-stream-buffer", "effect-no-focused-effect-tests", "effect-no-skipped-effect-tests", "effect-no-known-fake-api", "effect-require-service-self-match", "effect-no-catchAll-with-mapError", "effect-prefer-effect-void", "effect-prefer-asVoid", "effect-prefer-flatMap-over-map-flatten", "effect-prefer-succeed-for-static-layers", "effect-prefer-schema-tagged-struct", "effect-prefer-single-schema-literal-union", "effect-schema-require-parseJson-for-json-strings", "effect-schema-no-cast-after-decode", "effect-no-error-channel-widening-to-unknown", "effect-require-service-class-pattern", "effect-require-deterministic-service-keys"];
|
|
3
|
+
export declare const effectStrictRuleNames: readonly ["effect-no-runSync-in-server-request-handlers"];
|
|
5
4
|
//# sourceMappingURL=effect-rule-names.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"effect-rule-names.d.ts","sourceRoot":"","sources":["../../src/rules/effect-rule-names.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,srBAmBxB,CAAC;AAEX,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"effect-rule-names.d.ts","sourceRoot":"","sources":["../../src/rules/effect-rule-names.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,srBAmBxB,CAAC;AAEX,eAAO,MAAM,sBAAsB,0xCAmCzB,CAAC;AAEX,eAAO,MAAM,qBAAqB,2DAA4D,CAAC"}
|
|
@@ -26,17 +26,8 @@ export const effectDefaultRuleNames = [
|
|
|
26
26
|
'effect-require-suspend-for-recursion',
|
|
27
27
|
'effect-no-silent-error-swallowing',
|
|
28
28
|
'effect-require-typed-error-in-trypromise',
|
|
29
|
-
'effect-no-catchAll-with-mapError',
|
|
30
29
|
'effect-require-error-cause-preserved',
|
|
31
|
-
'effect-no-error-channel-widening-to-unknown',
|
|
32
30
|
'effect-no-runfork-without-observer',
|
|
33
|
-
'effect-schema-require-parse-error-handling',
|
|
34
|
-
'effect-schema-use-decodeUnknown-for-external-data',
|
|
35
|
-
'effect-schema-require-parseJson-for-json-strings',
|
|
36
|
-
'effect-schema-correct-number-type-for-parsed-json',
|
|
37
|
-
'effect-schema-no-redundant-tag-identifier',
|
|
38
|
-
'effect-schema-avoid-old-type-names',
|
|
39
|
-
'effect-schema-no-cast-after-decode',
|
|
40
31
|
'effect-require-acquire-release',
|
|
41
32
|
'effect-require-scoped-for-acquireRelease',
|
|
42
33
|
'effect-require-scoped-for-resources',
|
|
@@ -46,76 +37,22 @@ export const effectDefaultRuleNames = [
|
|
|
46
37
|
'effect-require-bounded-flatMap-concurrency',
|
|
47
38
|
'effect-no-unbounded-queue',
|
|
48
39
|
'effect-no-unbounded-stream-buffer',
|
|
49
|
-
'effect-testClock-requires-fork',
|
|
50
|
-
'effect-testClock-requires-testContext',
|
|
51
|
-
'effect-no-real-sleep-in-tests',
|
|
52
40
|
'effect-no-focused-effect-tests',
|
|
53
41
|
'effect-no-skipped-effect-tests',
|
|
54
|
-
'effect-no-obsolete-imports',
|
|
55
42
|
'effect-no-known-fake-api',
|
|
56
|
-
'effect-no-deprecated-schema-package',
|
|
57
|
-
'effect-no-deprecated-context-tag-function',
|
|
58
43
|
'effect-require-service-self-match',
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
'effect-
|
|
62
|
-
'effect-
|
|
63
|
-
'effect-no-runSync-in-server-request-handlers',
|
|
64
|
-
'effect-no-promise-returning-public-api',
|
|
65
|
-
'effect-no-direct-process-env-outside-config-layer',
|
|
66
|
-
'effect-no-direct-clock-random-outside-adapters',
|
|
67
|
-
'effect-no-direct-http-fs-outside-platform-services',
|
|
68
|
-
'effect-require-service-class-pattern',
|
|
69
|
-
'effect-require-tag-identifier',
|
|
70
|
-
'effect-no-leaked-service-dependencies',
|
|
71
|
-
'effect-no-duplicate-layer-instances',
|
|
72
|
-
'effect-require-centralized-provision',
|
|
73
|
-
'effect-no-provide-in-domain-modules',
|
|
74
|
-
'effect-require-layer-memoization-constant',
|
|
75
|
-
'effect-require-suspend-for-circular-deps',
|
|
76
|
-
'effect-avoid-layer-explosion',
|
|
44
|
+
'effect-no-catchAll-with-mapError',
|
|
45
|
+
'effect-prefer-effect-void',
|
|
46
|
+
'effect-prefer-asVoid',
|
|
47
|
+
'effect-prefer-flatMap-over-map-flatten',
|
|
77
48
|
'effect-prefer-succeed-for-static-layers',
|
|
78
|
-
'effect-require-scoped-for-resource-layers',
|
|
79
|
-
'effect-no-service-construction-outside-layer',
|
|
80
|
-
'effect-schema-require-validation-at-input-boundaries',
|
|
81
|
-
'effect-schema-require-validation-at-output-boundaries',
|
|
82
|
-
'effect-schema-require-http-client-response-schema',
|
|
83
|
-
'effect-schema-require-http-server-request-schema',
|
|
84
|
-
'effect-schema-require-config-schema',
|
|
85
|
-
'effect-schema-require-persistence-schema',
|
|
86
|
-
'effect-schema-require-public-command-schema',
|
|
87
|
-
'effect-schema-no-unknown-crossing-boundary',
|
|
88
|
-
'effect-require-timeout-on-external-effects',
|
|
89
|
-
'effect-require-retry-policy-for-idempotent-external-effects',
|
|
90
|
-
'effect-require-schedule-jitter-for-retries',
|
|
91
|
-
'effect-require-span-external',
|
|
92
|
-
'effect-require-semaphore-for-shared-resources',
|
|
93
|
-
'effect-require-ref-for-shared-mutable-state',
|
|
94
|
-
'effect-require-scoped-in-loops',
|
|
95
|
-
'effect-require-onExit-for-cleanup',
|
|
96
|
-
'effect-require-stream-resource-safety',
|
|
97
|
-
'effect-require-stream-termination',
|
|
98
|
-
'effect-require-explicit-asyncPush-buffer',
|
|
99
|
-
'effect-require-batching-for-resolver',
|
|
100
|
-
'effect-use-batched-resolver-for-n-plus-one',
|
|
101
|
-
'effect-prefer-pubsub-for-broadcast',
|
|
102
|
-
'effect-require-provided-services-in-tests',
|
|
103
|
-
'effect-prefer-in-memory-implementations',
|
|
104
|
-
'effect-no-live-services-in-unit-tests',
|
|
105
|
-
'effect-require-testclock-for-time-code',
|
|
106
|
-
'effect-no-test-runtime-leakage',
|
|
107
|
-
'effect-no-ad-hoc-effect-wrapper-abstractions',
|
|
108
|
-
'effect-no-crypto-randomUUID',
|
|
109
|
-
'effect-require-schema-is-over-instanceof',
|
|
110
49
|
'effect-prefer-schema-tagged-struct',
|
|
111
50
|
'effect-prefer-single-schema-literal-union',
|
|
51
|
+
'effect-schema-require-parseJson-for-json-strings',
|
|
52
|
+
'effect-schema-no-cast-after-decode',
|
|
53
|
+
'effect-no-error-channel-widening-to-unknown',
|
|
54
|
+
'effect-require-service-class-pattern',
|
|
112
55
|
'effect-require-deterministic-service-keys',
|
|
113
|
-
'effect-no-multiple-provide-chain',
|
|
114
|
-
'effect-require-layer-scoped-when-scope-required',
|
|
115
|
-
'effect-no-node-builtins-when-effect-platform-exists',
|
|
116
|
-
'effect-no-global-fetch',
|
|
117
|
-
'effect-prefer-effect-void',
|
|
118
|
-
'effect-prefer-asVoid',
|
|
119
|
-
'effect-prefer-flatMap-over-map-flatten',
|
|
120
56
|
];
|
|
57
|
+
export const effectStrictRuleNames = ['effect-no-runSync-in-server-request-handlers'];
|
|
121
58
|
//# sourceMappingURL=effect-rule-names.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"effect-rule-names.js","sourceRoot":"","sources":["../../src/rules/effect-rule-names.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,2BAA2B;IAC3B,2BAA2B;IAC3B,kCAAkC;IAClC,0BAA0B;IAC1B,sCAAsC;IACtC,mCAAmC;IACnC,0CAA0C;IAC1C,sCAAsC;IACtC,oCAAoC;IACpC,gCAAgC;IAChC,0CAA0C;IAC1C,qCAAqC;IACrC,uCAAuC;IACvC,oDAAoD;IACpD,oCAAoC;IACpC,4CAA4C;IAC5C,2BAA2B;IAC3B,mCAAmC;CAC3B,CAAC;AAEX,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,2BAA2B;IAC3B,2BAA2B;IAC3B,kCAAkC;IAClC,0BAA0B;IAC1B,sCAAsC;IACtC,mCAAmC;IACnC,0CAA0C;IAC1C,
|
|
1
|
+
{"version":3,"file":"effect-rule-names.js","sourceRoot":"","sources":["../../src/rules/effect-rule-names.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,2BAA2B;IAC3B,2BAA2B;IAC3B,kCAAkC;IAClC,0BAA0B;IAC1B,sCAAsC;IACtC,mCAAmC;IACnC,0CAA0C;IAC1C,sCAAsC;IACtC,oCAAoC;IACpC,gCAAgC;IAChC,0CAA0C;IAC1C,qCAAqC;IACrC,uCAAuC;IACvC,oDAAoD;IACpD,oCAAoC;IACpC,4CAA4C;IAC5C,2BAA2B;IAC3B,mCAAmC;CAC3B,CAAC;AAEX,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,2BAA2B;IAC3B,2BAA2B;IAC3B,kCAAkC;IAClC,0BAA0B;IAC1B,sCAAsC;IACtC,mCAAmC;IACnC,0CAA0C;IAC1C,sCAAsC;IACtC,oCAAoC;IACpC,gCAAgC;IAChC,0CAA0C;IAC1C,qCAAqC;IACrC,uCAAuC;IACvC,oDAAoD;IACpD,oCAAoC;IACpC,4CAA4C;IAC5C,2BAA2B;IAC3B,mCAAmC;IACnC,gCAAgC;IAChC,gCAAgC;IAChC,0BAA0B;IAC1B,mCAAmC;IACnC,kCAAkC;IAClC,2BAA2B;IAC3B,sBAAsB;IACtB,wCAAwC;IACxC,yCAAyC;IACzC,oCAAoC;IACpC,2CAA2C;IAC3C,kDAAkD;IAClD,oCAAoC;IACpC,6CAA6C;IAC7C,sCAAsC;IACtC,2CAA2C;CACnC,CAAC;AAEX,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,8CAA8C,CAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"effect-strict-core-specs.d.ts","sourceRoot":"","sources":["../../src/rules/effect-strict-core-specs.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"effect-strict-core-specs.d.ts","sourceRoot":"","sources":["../../src/rules/effect-strict-core-specs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAInD,eAAO,MAAM,qBAAqB,EAAE,SAAS,QAAQ,EAQpD,CAAC"}
|