@siim-m/config 0.2.0 → 0.4.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/README.md +57 -5
- package/dist/ai-guard.d.ts +5 -0
- package/dist/ai-guard.js +5 -0
- package/dist/anti-slop/effect/LICENSE-enfect +21 -0
- package/dist/anti-slop/effect/index.js +8 -0
- package/dist/anti-slop/effect/rules/no-ordie-in-service-construction.d.ts +2 -0
- package/dist/anti-slop/effect/rules/no-ordie-in-service-construction.js +117 -0
- package/dist/anti-slop/effect/rules/no-unbounded-retry.d.ts +2 -0
- package/dist/anti-slop/effect/rules/no-unbounded-retry.js +307 -0
- package/dist/anti-slop/effect/rules/require-cause-when-narrowing.d.ts +2 -0
- package/dist/anti-slop/effect/rules/require-cause-when-narrowing.js +250 -0
- package/dist/anti-slop/effect/rules/throw-in-effect-gen.d.ts +2 -0
- package/dist/anti-slop/effect/rules/throw-in-effect-gen.js +87 -0
- package/dist/anti-slop/effect/shared/effect-modules.d.ts +79 -0
- package/dist/anti-slop/effect/shared/effect-modules.js +336 -0
- package/dist/anti-slop/index.js +6 -0
- package/dist/anti-slop/rules/comments.d.ts +6 -0
- package/dist/anti-slop/rules/comments.js +289 -0
- package/dist/anti-slop/rules/no-disabled-type-assertion-rules.d.ts +2 -0
- package/dist/anti-slop/rules/no-disabled-type-assertion-rules.js +94 -0
- package/dist/anti-slop/rules/require-suppression-reason.d.ts +6 -0
- package/dist/anti-slop/rules/require-suppression-reason.js +61 -0
- package/dist/landmines.d.ts +5 -0
- package/dist/landmines.js +5 -0
- package/dist/oxlint.d.ts +41 -0
- package/dist/oxlint.js +48 -1
- package/package.json +16 -5
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { defineRule } from "@oxlint/plugins";
|
|
2
|
+
/** The rules that keep type assertions out. An inline disable of any of them lets a cast through. */
|
|
3
|
+
const defaultTypeAssertionRules = [
|
|
4
|
+
"anti-slop/no-chained-type-assertions",
|
|
5
|
+
"anti-slop/no-widen-then-assert",
|
|
6
|
+
"anti-slop/require-safety-comment-for-type-assertion",
|
|
7
|
+
"effecttsgo/unsafe-effect-type-assertion",
|
|
8
|
+
"typescript/consistent-type-assertions",
|
|
9
|
+
"typescript/no-unsafe-type-assertion",
|
|
10
|
+
];
|
|
11
|
+
const directivePattern = /^\s*(?:oxlint|eslint)-disable(?:-next-line|-line)?(?=\s|$)(.*)$/su;
|
|
12
|
+
/** Rule names are compared with `@typescript-eslint/` read as `typescript/`. */
|
|
13
|
+
function normalizeRuleName(rule) {
|
|
14
|
+
return rule.trim().replace(/^@?typescript-eslint\//u, "typescript/");
|
|
15
|
+
}
|
|
16
|
+
/** The rule names a disable directive lists, or null when the comment is not a disable directive. */
|
|
17
|
+
function directiveRules(value) {
|
|
18
|
+
const match = directivePattern.exec(value);
|
|
19
|
+
if (match === null)
|
|
20
|
+
return null;
|
|
21
|
+
// Oxlint ends the rule list at ` --`, with or without a space before the reason.
|
|
22
|
+
const list = (match[1] ?? "").split(/\s--/u)[0] ?? "";
|
|
23
|
+
// Commas, spaces and newlines all separate rule names.
|
|
24
|
+
return list
|
|
25
|
+
.split(/[\s,]+/u)
|
|
26
|
+
.map(normalizeRuleName)
|
|
27
|
+
.filter((rule) => rule.length > 0);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Oxlint applies a disable to a built-in rule by the name after the slash, whatever the prefix, and
|
|
31
|
+
* a disable with no prefix to that built-in rule too. A bare name doesn't reach a JS plugin rule, so
|
|
32
|
+
* reporting one only flags a disable that does nothing.
|
|
33
|
+
*/
|
|
34
|
+
function isTypeAssertionRule(typeAssertionRules, rule) {
|
|
35
|
+
if (typeAssertionRules.has(rule))
|
|
36
|
+
return true;
|
|
37
|
+
const name = rule.slice(rule.lastIndexOf("/") + 1);
|
|
38
|
+
return [...typeAssertionRules].some((known) => known === `typescript/${name}` || (!rule.includes("/") && known.endsWith(`/${name}`)));
|
|
39
|
+
}
|
|
40
|
+
function configuredAdditionalRules(option) {
|
|
41
|
+
if (typeof option !== "object" || option === null || !("additionalRules" in option))
|
|
42
|
+
return [];
|
|
43
|
+
const { additionalRules } = option;
|
|
44
|
+
if (!Array.isArray(additionalRules))
|
|
45
|
+
return [];
|
|
46
|
+
return additionalRules.filter((rule) => typeof rule === "string").map(normalizeRuleName);
|
|
47
|
+
}
|
|
48
|
+
/** Disallow inline disables of the type-assertion rules, and disables that name no rule at all. */
|
|
49
|
+
export const noDisabledTypeAssertionRulesRule = defineRule({
|
|
50
|
+
meta: {
|
|
51
|
+
type: "problem",
|
|
52
|
+
docs: {
|
|
53
|
+
description: "Disallow inline disable comments for the type-assertion rules, and disable comments that name no rule.",
|
|
54
|
+
},
|
|
55
|
+
messages: {
|
|
56
|
+
disabledRule: "Don't disable `{{rule}}` inline. Remove the cast, or add a file override with its reason in the lint config.",
|
|
57
|
+
disabledEverything: "This disable comment names no rule, so it turns off the type-assertion rules too. Name the rules it disables.",
|
|
58
|
+
},
|
|
59
|
+
schema: [
|
|
60
|
+
{
|
|
61
|
+
type: "object",
|
|
62
|
+
properties: {
|
|
63
|
+
additionalRules: { type: "array", items: { type: "string", minLength: 1 }, uniqueItems: true },
|
|
64
|
+
},
|
|
65
|
+
additionalProperties: false,
|
|
66
|
+
},
|
|
67
|
+
],
|
|
68
|
+
defaultOptions: [{ additionalRules: [] }],
|
|
69
|
+
},
|
|
70
|
+
createOnce(context) {
|
|
71
|
+
return {
|
|
72
|
+
Program() {
|
|
73
|
+
const typeAssertionRules = new Set([
|
|
74
|
+
...defaultTypeAssertionRules,
|
|
75
|
+
...configuredAdditionalRules(context.options?.[0]),
|
|
76
|
+
]);
|
|
77
|
+
for (const comment of context.sourceCode.getAllComments()) {
|
|
78
|
+
const rules = directiveRules(comment.value);
|
|
79
|
+
if (rules === null)
|
|
80
|
+
continue;
|
|
81
|
+
if (rules.length === 0) {
|
|
82
|
+
context.report({ node: comment, messageId: "disabledEverything" });
|
|
83
|
+
continue;
|
|
84
|
+
}
|
|
85
|
+
for (const rule of rules) {
|
|
86
|
+
if (!isTypeAssertionRule(typeAssertionRules, rule))
|
|
87
|
+
continue;
|
|
88
|
+
context.report({ node: comment, messageId: "disabledRule", data: { rule } });
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
};
|
|
93
|
+
},
|
|
94
|
+
});
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Require every lint or type-checker suppression to say why: after ` -- ` (or after the
|
|
3
|
+
* `@ts-` directive), or in a comment on the line above. Adapted from T3 Code's
|
|
4
|
+
* `require-suppression-reason` (MIT, T3 Tools Inc.).
|
|
5
|
+
*/
|
|
6
|
+
export declare const requireSuppressionReasonRule: import("@oxlint/plugins").Rule;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { defineRule } from '@oxlint/plugins';
|
|
2
|
+
const DIRECTIVE = /^\s*\*?\s*(?:(?:oxlint|eslint)-(?:disable|enable)|@ts-(?:expect-error|ignore|nocheck|check)|@effect-diagnostics|(?:prettier|oxfmt)-ignore|biome-ignore|svelte-ignore|(?:c8|v8|istanbul)\s+ignore|@(?:vitest|jest)-environment|@vite-ignore|@jsx|nosemgrep\b)/u;
|
|
3
|
+
const TYPESCRIPT_DIRECTIVE = /^\s*\*?\s*@ts-(?:expect-error|ignore|nocheck)(?![\w-])(.*)$/su;
|
|
4
|
+
const EMPTY = /^[\s*]*$/u;
|
|
5
|
+
/**
|
|
6
|
+
* Require every lint or type-checker suppression to say why: after ` -- ` (or after the
|
|
7
|
+
* `@ts-` directive), or in a comment on the line above. Adapted from T3 Code's
|
|
8
|
+
* `require-suppression-reason` (MIT, T3 Tools Inc.).
|
|
9
|
+
*/
|
|
10
|
+
export const requireSuppressionReasonRule = defineRule({
|
|
11
|
+
meta: {
|
|
12
|
+
type: 'suggestion',
|
|
13
|
+
docs: { description: 'Require every lint or type-checker suppression to say why.' },
|
|
14
|
+
messages: {
|
|
15
|
+
lintDirective: 'Say why: end the directive with `-- reason`, or put a comment on the line above.',
|
|
16
|
+
typescriptDirective: 'Say why: write the reason after the directive, or in a comment on the line above.',
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
createOnce(context) {
|
|
20
|
+
return {
|
|
21
|
+
Program() {
|
|
22
|
+
const { sourceCode } = context;
|
|
23
|
+
const comments = sourceCode.getAllComments();
|
|
24
|
+
const ownLineByEndLine = new Map();
|
|
25
|
+
for (const comment of comments) {
|
|
26
|
+
if (comment.type === 'Shebang')
|
|
27
|
+
continue;
|
|
28
|
+
const { line, column } = comment.loc.start;
|
|
29
|
+
if ((sourceCode.lines[line - 1] ?? '').slice(0, column).trim() === '') {
|
|
30
|
+
ownLineByEndLine.set(comment.loc.end.line, comment);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
/** Whether a prose comment sits directly above, past other directives and empty comments. */
|
|
34
|
+
const explainedAbove = (directive) => {
|
|
35
|
+
let above = ownLineByEndLine.get(directive.loc.start.line - 1);
|
|
36
|
+
while (above !== undefined && (DIRECTIVE.test(above.value) || EMPTY.test(above.value))) {
|
|
37
|
+
above = ownLineByEndLine.get(above.loc.start.line - 1);
|
|
38
|
+
}
|
|
39
|
+
return above !== undefined;
|
|
40
|
+
};
|
|
41
|
+
for (const directive of sourceCode.getDisableDirectives().directives) {
|
|
42
|
+
if (directive.type === 'enable' || directive.justification?.trim())
|
|
43
|
+
continue;
|
|
44
|
+
if (explainedAbove(directive.node))
|
|
45
|
+
continue;
|
|
46
|
+
context.report({ loc: directive.node.loc, messageId: 'lintDirective' });
|
|
47
|
+
}
|
|
48
|
+
for (const comment of comments) {
|
|
49
|
+
if (comment.type === 'Shebang')
|
|
50
|
+
continue;
|
|
51
|
+
const after = TYPESCRIPT_DIRECTIVE.exec(comment.value)?.[1];
|
|
52
|
+
if (after === undefined || after.replace(/^[\s:-]+/u, '').trim() !== '')
|
|
53
|
+
continue;
|
|
54
|
+
if (explainedAbove(comment))
|
|
55
|
+
continue;
|
|
56
|
+
context.report({ loc: comment.loc, messageId: 'typescriptDirective' });
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
};
|
|
60
|
+
},
|
|
61
|
+
});
|
package/dist/oxlint.d.ts
CHANGED
|
@@ -15,8 +15,10 @@ declare const preset: {
|
|
|
15
15
|
correctness: "error";
|
|
16
16
|
};
|
|
17
17
|
rules: {
|
|
18
|
+
'anti-slop/comments': "error";
|
|
18
19
|
'anti-slop/no-chained-type-assertions': "error";
|
|
19
20
|
'anti-slop/no-conditional-empty-object-spread': "error";
|
|
21
|
+
'anti-slop/no-disabled-type-assertion-rules': "error";
|
|
20
22
|
'anti-slop/no-known-value-widening': "error";
|
|
21
23
|
'anti-slop/no-module-mocking': "error";
|
|
22
24
|
'anti-slop/no-object-parameters': "error";
|
|
@@ -32,13 +34,52 @@ declare const preset: {
|
|
|
32
34
|
'anti-slop/require-pascal-case-namespace-imports': "error";
|
|
33
35
|
'anti-slop/require-readable-spacing': "error";
|
|
34
36
|
'anti-slop/require-safety-comment-for-type-assertion': "error";
|
|
37
|
+
'anti-slop/require-suppression-reason': "error";
|
|
35
38
|
'anti-slop-effect/no-manual-effect-error-tag': "error";
|
|
39
|
+
'anti-slop-effect/no-ordie-in-service-construction': "error";
|
|
36
40
|
'anti-slop-effect/no-service-constructor-imports': "error";
|
|
37
41
|
'anti-slop-effect/no-service-parameters': "error";
|
|
42
|
+
'anti-slop-effect/no-unbounded-retry': "error";
|
|
38
43
|
'anti-slop-effect/prefer-effect-match': "error";
|
|
44
|
+
'anti-slop-effect/require-cause-when-narrowing': "error";
|
|
45
|
+
'anti-slop-effect/throw-in-effect-gen': "error";
|
|
46
|
+
'ai-guard/no-assertionless-test': "error";
|
|
47
|
+
'ai-guard/no-placeholder-implementation': "error";
|
|
48
|
+
'ai-guard/no-silent-fallback': "error";
|
|
49
|
+
'ai-guard/no-tautological-assertion': "error";
|
|
50
|
+
'ai-guard/no-test-env-branch': "error";
|
|
51
|
+
'ai-guard/no-undeclared-import': "error";
|
|
52
|
+
'landmines/no-fixed-sleep': "error";
|
|
53
|
+
'landmines/no-flake-masking': "error";
|
|
54
|
+
'landmines/no-unsignaled-poll': "error";
|
|
55
|
+
'landmines/strict-msw': "error";
|
|
39
56
|
'oxc/no-accumulating-spread': "error";
|
|
57
|
+
eqeqeq: "error";
|
|
58
|
+
'typescript/consistent-type-imports': "error";
|
|
59
|
+
'typescript/no-explicit-any': "error";
|
|
60
|
+
'typescript/no-non-null-assertion': "error";
|
|
40
61
|
'typescript/no-floating-promises': "error";
|
|
41
62
|
'typescript/no-misused-promises': "error";
|
|
63
|
+
'typescript/no-unnecessary-type-assertion': "error";
|
|
64
|
+
'typescript/no-unnecessary-type-conversion': "error";
|
|
65
|
+
'typescript/no-unsafe-argument': "error";
|
|
66
|
+
'typescript/no-unsafe-assignment': "error";
|
|
67
|
+
'typescript/no-unsafe-call': "error";
|
|
68
|
+
'typescript/no-unsafe-member-access': "error";
|
|
69
|
+
'typescript/no-unsafe-return': "error";
|
|
70
|
+
'typescript/no-unsafe-type-assertion': "error";
|
|
71
|
+
'typescript/only-throw-error': "error";
|
|
72
|
+
'typescript/switch-exhaustiveness-check': ["error", {
|
|
73
|
+
allowDefaultCaseForExhaustiveSwitch: true;
|
|
74
|
+
considerDefaultExhaustiveForUnions: true;
|
|
75
|
+
}];
|
|
76
|
+
'typescript/use-unknown-in-catch-callback-variable': "error";
|
|
42
77
|
};
|
|
78
|
+
overrides: {
|
|
79
|
+
files: string[];
|
|
80
|
+
rules: {
|
|
81
|
+
'anti-slop-effect/throw-in-effect-gen': "off";
|
|
82
|
+
};
|
|
83
|
+
}[];
|
|
43
84
|
};
|
|
44
85
|
export default preset;
|
package/dist/oxlint.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
const TEST_FILES = ['**/*.test.*', '**/*.spec.*', '**/test/**', '**/tests/**', '**/__tests__/**'];
|
|
1
2
|
/**
|
|
2
3
|
* Shared oxlint preset. Extend it from `oxlint.config.mts`:
|
|
3
4
|
*
|
|
@@ -10,11 +11,15 @@ const preset = {
|
|
|
10
11
|
jsPlugins: [
|
|
11
12
|
{ name: 'anti-slop', specifier: '@siim-m/config/anti-slop' },
|
|
12
13
|
{ name: 'anti-slop-effect', specifier: '@siim-m/config/anti-slop-effect' },
|
|
14
|
+
{ name: 'ai-guard', specifier: '@siim-m/config/ai-guard' },
|
|
15
|
+
{ name: 'landmines', specifier: '@siim-m/config/landmines' },
|
|
13
16
|
],
|
|
14
17
|
categories: { correctness: 'error' },
|
|
15
18
|
rules: {
|
|
19
|
+
'anti-slop/comments': 'error',
|
|
16
20
|
'anti-slop/no-chained-type-assertions': 'error',
|
|
17
21
|
'anti-slop/no-conditional-empty-object-spread': 'error',
|
|
22
|
+
'anti-slop/no-disabled-type-assertion-rules': 'error',
|
|
18
23
|
'anti-slop/no-known-value-widening': 'error',
|
|
19
24
|
'anti-slop/no-module-mocking': 'error',
|
|
20
25
|
'anti-slop/no-object-parameters': 'error',
|
|
@@ -30,15 +35,57 @@ const preset = {
|
|
|
30
35
|
'anti-slop/require-pascal-case-namespace-imports': 'error',
|
|
31
36
|
'anti-slop/require-readable-spacing': 'error',
|
|
32
37
|
'anti-slop/require-safety-comment-for-type-assertion': 'error',
|
|
38
|
+
'anti-slop/require-suppression-reason': 'error',
|
|
33
39
|
'anti-slop-effect/no-manual-effect-error-tag': 'error',
|
|
40
|
+
'anti-slop-effect/no-ordie-in-service-construction': 'error',
|
|
34
41
|
'anti-slop-effect/no-service-constructor-imports': 'error',
|
|
35
42
|
'anti-slop-effect/no-service-parameters': 'error',
|
|
43
|
+
'anti-slop-effect/no-unbounded-retry': 'error',
|
|
36
44
|
'anti-slop-effect/prefer-effect-match': 'error',
|
|
45
|
+
'anti-slop-effect/require-cause-when-narrowing': 'error',
|
|
46
|
+
'anti-slop-effect/throw-in-effect-gen': 'error',
|
|
47
|
+
'ai-guard/no-assertionless-test': 'error',
|
|
48
|
+
'ai-guard/no-placeholder-implementation': 'error',
|
|
49
|
+
'ai-guard/no-silent-fallback': 'error',
|
|
50
|
+
'ai-guard/no-tautological-assertion': 'error',
|
|
51
|
+
'ai-guard/no-test-env-branch': 'error',
|
|
52
|
+
'ai-guard/no-undeclared-import': 'error',
|
|
53
|
+
'landmines/no-fixed-sleep': 'error',
|
|
54
|
+
'landmines/no-flake-masking': 'error',
|
|
55
|
+
'landmines/no-unsignaled-poll': 'error',
|
|
56
|
+
'landmines/strict-msw': 'error',
|
|
37
57
|
// Spreads in reducers; anti-slop/no-reduce-accumulator-copy covers the other copies.
|
|
38
58
|
'oxc/no-accumulating-spread': 'error',
|
|
39
|
-
|
|
59
|
+
eqeqeq: 'error',
|
|
60
|
+
'typescript/consistent-type-imports': 'error',
|
|
61
|
+
'typescript/no-explicit-any': 'error',
|
|
62
|
+
'typescript/no-non-null-assertion': 'error',
|
|
63
|
+
// Type-aware: these run only with `oxlint --type-aware` and tsrs or oxlint-tsgolint installed.
|
|
40
64
|
'typescript/no-floating-promises': 'error',
|
|
41
65
|
'typescript/no-misused-promises': 'error',
|
|
66
|
+
'typescript/no-unnecessary-type-assertion': 'error',
|
|
67
|
+
'typescript/no-unnecessary-type-conversion': 'error',
|
|
68
|
+
'typescript/no-unsafe-argument': 'error',
|
|
69
|
+
'typescript/no-unsafe-assignment': 'error',
|
|
70
|
+
'typescript/no-unsafe-call': 'error',
|
|
71
|
+
'typescript/no-unsafe-member-access': 'error',
|
|
72
|
+
'typescript/no-unsafe-return': 'error',
|
|
73
|
+
'typescript/no-unsafe-type-assertion': 'error',
|
|
74
|
+
'typescript/only-throw-error': 'error',
|
|
75
|
+
'typescript/switch-exhaustiveness-check': [
|
|
76
|
+
'error',
|
|
77
|
+
{ allowDefaultCaseForExhaustiveSwitch: true, considerDefaultExhaustiveForUnions: true },
|
|
78
|
+
],
|
|
79
|
+
'typescript/use-unknown-in-catch-callback-variable': 'error',
|
|
42
80
|
},
|
|
81
|
+
overrides: [
|
|
82
|
+
{
|
|
83
|
+
files: TEST_FILES,
|
|
84
|
+
rules: {
|
|
85
|
+
// A test may throw inside Effect.gen to fail on purpose.
|
|
86
|
+
'anti-slop-effect/throw-in-effect-gen': 'off',
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
],
|
|
43
90
|
};
|
|
44
91
|
export default preset;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@siim-m/config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Shared oxlint, oxfmt and tsconfig settings, with the anti-slop oxlint plugins and a React preset",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "github:siim-m/config",
|
|
@@ -17,6 +17,8 @@
|
|
|
17
17
|
"./anti-slop": "./dist/anti-slop/index.js",
|
|
18
18
|
"./anti-slop-effect": "./dist/anti-slop/effect/index.js",
|
|
19
19
|
"./anti-slop-react": "./dist/anti-slop-react/index.js",
|
|
20
|
+
"./ai-guard": "./dist/ai-guard.js",
|
|
21
|
+
"./landmines": "./dist/landmines.js",
|
|
20
22
|
"./tsconfig.json": "./tsconfig.base.json",
|
|
21
23
|
"./reset.d.ts": "./reset.d.ts"
|
|
22
24
|
},
|
|
@@ -24,7 +26,7 @@
|
|
|
24
26
|
"access": "public"
|
|
25
27
|
},
|
|
26
28
|
"scripts": {
|
|
27
|
-
"build": "rm -rf dist && tsc -p tsconfig.build.json && cp src/anti-slop/LICENSE dist/anti-slop/ && cp src/anti-slop-react/LICENSE dist/anti-slop-react/ && cp src/anti-slop/vendor/eslint-stylistic/LICENSE src/anti-slop/vendor/eslint-stylistic/padding-line-options.d.ts dist/anti-slop/vendor/eslint-stylistic/",
|
|
29
|
+
"build": "rm -rf dist && tsc -p tsconfig.build.json && cp src/anti-slop/LICENSE dist/anti-slop/ && cp src/anti-slop/effect/LICENSE-enfect dist/anti-slop/effect/ && cp src/anti-slop-react/LICENSE dist/anti-slop-react/ && cp src/anti-slop/vendor/eslint-stylistic/LICENSE src/anti-slop/vendor/eslint-stylistic/padding-line-options.d.ts dist/anti-slop/vendor/eslint-stylistic/",
|
|
28
30
|
"typecheck": "tsc --noEmit",
|
|
29
31
|
"test": "bun run build && node --test 'src/**/*.test.ts' 'test/*.test.ts'",
|
|
30
32
|
"format": "oxfmt",
|
|
@@ -33,22 +35,25 @@
|
|
|
33
35
|
"prepublishOnly": "bun run check"
|
|
34
36
|
},
|
|
35
37
|
"dependencies": {
|
|
38
|
+
"@interfere/landmines": "^0.1.1",
|
|
36
39
|
"@oxlint/plugins": "^1.92.0",
|
|
37
|
-
"@total-typescript/ts-reset": "^0.6.1"
|
|
40
|
+
"@total-typescript/ts-reset": "^0.6.1",
|
|
41
|
+
"eslint-plugin-ai-guard": "^1.4.7"
|
|
38
42
|
},
|
|
39
43
|
"devDependencies": {
|
|
40
44
|
"@types/node": "26.6.6",
|
|
41
45
|
"@types/react": "19.3.0",
|
|
42
46
|
"oxfmt": "0.77.0",
|
|
43
47
|
"oxlint": "1.92.0",
|
|
44
|
-
"
|
|
48
|
+
"tsrs": "7.1.0-beta.tsrs3",
|
|
45
49
|
"typescript": "7.0.2"
|
|
46
50
|
},
|
|
47
51
|
"peerDependencies": {
|
|
48
52
|
"@effect/tsgo": ">=0.67.5",
|
|
49
53
|
"oxfmt": ">=0.77.0",
|
|
50
54
|
"oxlint": ">=1.92.0",
|
|
51
|
-
"oxlint-tsgolint": ">=7.0.2006"
|
|
55
|
+
"oxlint-tsgolint": ">=7.0.2006",
|
|
56
|
+
"tsrs": ">=7.1.0-beta.tsrs3"
|
|
52
57
|
},
|
|
53
58
|
"peerDependenciesMeta": {
|
|
54
59
|
"@effect/tsgo": {
|
|
@@ -59,7 +64,13 @@
|
|
|
59
64
|
},
|
|
60
65
|
"oxlint-tsgolint": {
|
|
61
66
|
"optional": true
|
|
67
|
+
},
|
|
68
|
+
"tsrs": {
|
|
69
|
+
"optional": true
|
|
62
70
|
}
|
|
63
71
|
},
|
|
72
|
+
"engines": {
|
|
73
|
+
"node": "^22.18.0 || >=24.11.0"
|
|
74
|
+
},
|
|
64
75
|
"packageManager": "bun@1.4.4"
|
|
65
76
|
}
|