@siim-m/config 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +33 -2
- package/dist/anti-slop/LICENSE +21 -0
- package/dist/anti-slop/effect/baseline.d.ts +18 -0
- package/dist/anti-slop/effect/baseline.js +41 -0
- package/dist/anti-slop/effect/index.d.ts +3 -0
- package/dist/anti-slop/effect/index.js +16 -0
- package/dist/anti-slop/effect/rules/no-manual-effect-error-tag.d.ts +1 -0
- package/dist/anti-slop/effect/rules/no-manual-effect-error-tag.js +39 -0
- package/dist/anti-slop/effect/rules/no-service-constructor-imports.d.ts +2 -0
- package/dist/anti-slop/effect/rules/no-service-constructor-imports.js +44 -0
- package/dist/anti-slop/effect/rules/no-service-parameters.d.ts +2 -0
- package/dist/anti-slop/effect/rules/no-service-parameters.js +181 -0
- package/dist/anti-slop/effect/rules/prefer-effect-match.d.ts +1 -0
- package/dist/anti-slop/effect/rules/prefer-effect-match.js +48 -0
- package/dist/anti-slop/effect/shared/tagged-values.d.ts +8 -0
- package/dist/anti-slop/effect/shared/tagged-values.js +68 -0
- package/dist/anti-slop/index.d.ts +3 -0
- package/dist/anti-slop/index.js +42 -0
- package/dist/anti-slop/rules/no-chained-type-assertions.d.ts +2 -0
- package/dist/anti-slop/rules/no-chained-type-assertions.js +60 -0
- package/dist/anti-slop/rules/no-conditional-empty-object-spread.d.ts +2 -0
- package/dist/anti-slop/rules/no-conditional-empty-object-spread.js +40 -0
- package/dist/anti-slop/rules/no-known-value-widening.d.ts +2 -0
- package/dist/anti-slop/rules/no-known-value-widening.js +300 -0
- package/dist/anti-slop/rules/no-module-mocking.d.ts +2 -0
- package/dist/anti-slop/rules/no-module-mocking.js +69 -0
- package/dist/anti-slop/rules/no-object-parameters.d.ts +2 -0
- package/dist/anti-slop/rules/no-object-parameters.js +56 -0
- package/dist/anti-slop/rules/no-reduce-accumulator-copy.d.ts +2 -0
- package/dist/anti-slop/rules/no-reduce-accumulator-copy.js +99 -0
- package/dist/anti-slop/rules/no-reflect-apply.d.ts +2 -0
- package/dist/anti-slop/rules/no-reflect-apply.js +25 -0
- package/dist/anti-slop/rules/no-reflect-get.d.ts +2 -0
- package/dist/anti-slop/rules/no-reflect-get.js +25 -0
- package/dist/anti-slop/rules/no-runtime-typeof.d.ts +2 -0
- package/dist/anti-slop/rules/no-runtime-typeof.js +64 -0
- package/dist/anti-slop/rules/no-unknown-parameters.d.ts +2 -0
- package/dist/anti-slop/rules/no-unknown-parameters.js +51 -0
- package/dist/anti-slop/rules/no-unknown-returns.d.ts +2 -0
- package/dist/anti-slop/rules/no-unknown-returns.js +58 -0
- package/dist/anti-slop/rules/no-unknown-type-aliases.d.ts +2 -0
- package/dist/anti-slop/rules/no-unknown-type-aliases.js +40 -0
- package/dist/anti-slop/rules/no-unsafe-dictionary-type.d.ts +2 -0
- package/dist/anti-slop/rules/no-unsafe-dictionary-type.js +134 -0
- package/dist/anti-slop/rules/no-widen-then-assert.d.ts +2 -0
- package/dist/anti-slop/rules/no-widen-then-assert.js +270 -0
- package/dist/anti-slop/rules/require-pascal-case-namespace-imports.d.ts +8 -0
- package/dist/anti-slop/rules/require-pascal-case-namespace-imports.js +36 -0
- package/dist/anti-slop/rules/require-readable-spacing.d.ts +3 -0
- package/dist/anti-slop/rules/require-readable-spacing.js +65 -0
- package/dist/anti-slop/rules/require-safety-comment-for-type-assertion.d.ts +2 -0
- package/dist/anti-slop/rules/require-safety-comment-for-type-assertion.js +100 -0
- package/dist/anti-slop/shared/array-method.d.ts +12 -0
- package/dist/anti-slop/shared/array-method.js +84 -0
- package/dist/anti-slop/shared/dictionary-types.d.ts +20 -0
- package/dist/anti-slop/shared/dictionary-types.js +377 -0
- package/dist/anti-slop/shared/function-parameters.d.ts +8 -0
- package/dist/anti-slop/shared/function-parameters.js +40 -0
- package/dist/anti-slop/shared/lexical-type-parameters.d.ts +5 -0
- package/dist/anti-slop/shared/lexical-type-parameters.js +47 -0
- package/dist/anti-slop/shared/reflect-method.d.ts +3 -0
- package/dist/anti-slop/shared/reflect-method.js +20 -0
- package/dist/anti-slop/shared/scope.d.ts +3 -0
- package/dist/anti-slop/shared/scope.js +11 -0
- package/dist/anti-slop/shared/type-alias-resolution.d.ts +23 -0
- package/dist/anti-slop/shared/type-alias-resolution.js +162 -0
- package/dist/anti-slop/vendor/eslint-stylistic/LICENSE +22 -0
- package/dist/anti-slop/vendor/eslint-stylistic/padding-line-ast.d.ts +27 -0
- package/dist/anti-slop/vendor/eslint-stylistic/padding-line-ast.js +28 -0
- package/dist/anti-slop/vendor/eslint-stylistic/padding-line-between-statements.d.ts +37 -0
- package/dist/anti-slop/vendor/eslint-stylistic/padding-line-between-statements.js +703 -0
- package/dist/anti-slop/vendor/eslint-stylistic/padding-line-options.d.ts +87 -0
- package/dist/oxfmt.d.ts +27 -0
- package/dist/oxfmt.js +19 -0
- package/dist/oxlint.d.ts +44 -0
- package/dist/oxlint.js +44 -0
- package/package.json +60 -4
- package/reset.d.ts +4 -0
- package/tsconfig.base.json +148 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/* GENERATED, DO NOT EDIT DIRECTLY */
|
|
2
|
+
|
|
3
|
+
/* @checksum: 3QCTtOH6rJM5_AGJ58rGpeEaBEfaJz17MSCxWB4X_PU */
|
|
4
|
+
|
|
5
|
+
export type PaddingType = 'any' | 'never' | 'always'
|
|
6
|
+
export type StatementOption =
|
|
7
|
+
| StatementMatcher
|
|
8
|
+
| [StatementMatcher, ...StatementMatcher[]]
|
|
9
|
+
export type StatementMatcher =
|
|
10
|
+
| StatementType
|
|
11
|
+
| SelectorOption
|
|
12
|
+
export type StatementType =
|
|
13
|
+
| '*'
|
|
14
|
+
| 'exports'
|
|
15
|
+
| 'require'
|
|
16
|
+
| 'directive'
|
|
17
|
+
| 'iife'
|
|
18
|
+
| 'block'
|
|
19
|
+
| 'empty'
|
|
20
|
+
| 'function'
|
|
21
|
+
| 'ts-method'
|
|
22
|
+
| 'break'
|
|
23
|
+
| 'case'
|
|
24
|
+
| 'class'
|
|
25
|
+
| 'continue'
|
|
26
|
+
| 'debugger'
|
|
27
|
+
| 'default'
|
|
28
|
+
| 'do'
|
|
29
|
+
| 'for'
|
|
30
|
+
| 'if'
|
|
31
|
+
| 'import'
|
|
32
|
+
| 'switch'
|
|
33
|
+
| 'throw'
|
|
34
|
+
| 'try'
|
|
35
|
+
| 'while'
|
|
36
|
+
| 'with'
|
|
37
|
+
| 'cjs-export'
|
|
38
|
+
| 'cjs-import'
|
|
39
|
+
| 'enum'
|
|
40
|
+
| 'interface'
|
|
41
|
+
| 'function-overload'
|
|
42
|
+
| 'block-like'
|
|
43
|
+
| 'singleline-block-like'
|
|
44
|
+
| 'multiline-block-like'
|
|
45
|
+
| 'expression'
|
|
46
|
+
| 'singleline-expression'
|
|
47
|
+
| 'multiline-expression'
|
|
48
|
+
| 'return'
|
|
49
|
+
| 'singleline-return'
|
|
50
|
+
| 'multiline-return'
|
|
51
|
+
| 'export'
|
|
52
|
+
| 'singleline-export'
|
|
53
|
+
| 'multiline-export'
|
|
54
|
+
| 'var'
|
|
55
|
+
| 'singleline-var'
|
|
56
|
+
| 'multiline-var'
|
|
57
|
+
| 'let'
|
|
58
|
+
| 'singleline-let'
|
|
59
|
+
| 'multiline-let'
|
|
60
|
+
| 'const'
|
|
61
|
+
| 'singleline-const'
|
|
62
|
+
| 'multiline-const'
|
|
63
|
+
| 'using'
|
|
64
|
+
| 'singleline-using'
|
|
65
|
+
| 'multiline-using'
|
|
66
|
+
| 'type'
|
|
67
|
+
| 'singleline-type'
|
|
68
|
+
| 'multiline-type'
|
|
69
|
+
export type PaddingLineBetweenStatementsSchema0 = {
|
|
70
|
+
blankLine: PaddingType
|
|
71
|
+
prev: StatementOption
|
|
72
|
+
next: StatementOption
|
|
73
|
+
}[]
|
|
74
|
+
|
|
75
|
+
export interface SelectorOption {
|
|
76
|
+
selector: string
|
|
77
|
+
lineMode?: 'any' | 'singleline' | 'multiline'
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export type PaddingLineBetweenStatementsRuleOptions
|
|
81
|
+
= PaddingLineBetweenStatementsSchema0
|
|
82
|
+
|
|
83
|
+
export type RuleOptions
|
|
84
|
+
= PaddingLineBetweenStatementsRuleOptions
|
|
85
|
+
export type MessageIds =
|
|
86
|
+
| 'unexpectedBlankLine'
|
|
87
|
+
| 'expectedBlankLine'
|
package/dist/oxfmt.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared oxfmt settings. oxfmt has no `extends`, so spread them in `oxfmt.config.mts` and
|
|
3
|
+
* set the repo's own values after the spread:
|
|
4
|
+
*
|
|
5
|
+
* export default { ...base, singleQuote: false, ignorePatterns: [...] }
|
|
6
|
+
*
|
|
7
|
+
* `overrides` is an array, so a repo that sets it replaces the Svelte entry below.
|
|
8
|
+
*/
|
|
9
|
+
declare const base: {
|
|
10
|
+
useTabs: false;
|
|
11
|
+
singleQuote: true;
|
|
12
|
+
trailingComma: "es5";
|
|
13
|
+
printWidth: number;
|
|
14
|
+
proseWrap: "always";
|
|
15
|
+
singleAttributePerLine: true;
|
|
16
|
+
sortImports: {
|
|
17
|
+
newlinesBetween: false;
|
|
18
|
+
};
|
|
19
|
+
overrides: {
|
|
20
|
+
files: string[];
|
|
21
|
+
options: {
|
|
22
|
+
svelte: true;
|
|
23
|
+
sortTailwindcss: true;
|
|
24
|
+
};
|
|
25
|
+
}[];
|
|
26
|
+
};
|
|
27
|
+
export default base;
|
package/dist/oxfmt.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared oxfmt settings. oxfmt has no `extends`, so spread them in `oxfmt.config.mts` and
|
|
3
|
+
* set the repo's own values after the spread:
|
|
4
|
+
*
|
|
5
|
+
* export default { ...base, singleQuote: false, ignorePatterns: [...] }
|
|
6
|
+
*
|
|
7
|
+
* `overrides` is an array, so a repo that sets it replaces the Svelte entry below.
|
|
8
|
+
*/
|
|
9
|
+
const base = {
|
|
10
|
+
useTabs: false,
|
|
11
|
+
singleQuote: true,
|
|
12
|
+
trailingComma: 'es5',
|
|
13
|
+
printWidth: 100,
|
|
14
|
+
proseWrap: 'always',
|
|
15
|
+
singleAttributePerLine: true,
|
|
16
|
+
sortImports: { newlinesBetween: false },
|
|
17
|
+
overrides: [{ files: ['**/*.svelte'], options: { svelte: true, sortTailwindcss: true } }],
|
|
18
|
+
};
|
|
19
|
+
export default base;
|
package/dist/oxlint.d.ts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared oxlint preset. Extend it from `oxlint.config.mts`:
|
|
3
|
+
*
|
|
4
|
+
* export default defineConfig({ extends: [base], ignorePatterns: [...], rules: { ... } })
|
|
5
|
+
*
|
|
6
|
+
* Every rule here is on. A repo that can't pass one yet turns it off in its own config, so
|
|
7
|
+
* its list of `'off'` rules is its to-do list. `ignorePatterns` are not inherited.
|
|
8
|
+
*/
|
|
9
|
+
declare const preset: {
|
|
10
|
+
jsPlugins: {
|
|
11
|
+
name: string;
|
|
12
|
+
specifier: string;
|
|
13
|
+
}[];
|
|
14
|
+
categories: {
|
|
15
|
+
correctness: "error";
|
|
16
|
+
};
|
|
17
|
+
rules: {
|
|
18
|
+
'anti-slop/no-chained-type-assertions': "error";
|
|
19
|
+
'anti-slop/no-conditional-empty-object-spread': "error";
|
|
20
|
+
'anti-slop/no-known-value-widening': "error";
|
|
21
|
+
'anti-slop/no-module-mocking': "error";
|
|
22
|
+
'anti-slop/no-object-parameters': "error";
|
|
23
|
+
'anti-slop/no-reduce-accumulator-copy': "error";
|
|
24
|
+
'anti-slop/no-reflect-apply': "error";
|
|
25
|
+
'anti-slop/no-reflect-get': "error";
|
|
26
|
+
'anti-slop/no-runtime-typeof': "error";
|
|
27
|
+
'anti-slop/no-unknown-parameters': "error";
|
|
28
|
+
'anti-slop/no-unknown-returns': "error";
|
|
29
|
+
'anti-slop/no-unknown-type-aliases': "error";
|
|
30
|
+
'anti-slop/no-unsafe-dictionary-type': "error";
|
|
31
|
+
'anti-slop/no-widen-then-assert': "error";
|
|
32
|
+
'anti-slop/require-pascal-case-namespace-imports': "error";
|
|
33
|
+
'anti-slop/require-readable-spacing': "error";
|
|
34
|
+
'anti-slop/require-safety-comment-for-type-assertion': "error";
|
|
35
|
+
'anti-slop-effect/no-manual-effect-error-tag': "error";
|
|
36
|
+
'anti-slop-effect/no-service-constructor-imports': "error";
|
|
37
|
+
'anti-slop-effect/no-service-parameters': "error";
|
|
38
|
+
'anti-slop-effect/prefer-effect-match': "error";
|
|
39
|
+
'oxc/no-accumulating-spread': "error";
|
|
40
|
+
'typescript/no-floating-promises': "error";
|
|
41
|
+
'typescript/no-misused-promises': "error";
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
export default preset;
|
package/dist/oxlint.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared oxlint preset. Extend it from `oxlint.config.mts`:
|
|
3
|
+
*
|
|
4
|
+
* export default defineConfig({ extends: [base], ignorePatterns: [...], rules: { ... } })
|
|
5
|
+
*
|
|
6
|
+
* Every rule here is on. A repo that can't pass one yet turns it off in its own config, so
|
|
7
|
+
* its list of `'off'` rules is its to-do list. `ignorePatterns` are not inherited.
|
|
8
|
+
*/
|
|
9
|
+
const preset = {
|
|
10
|
+
jsPlugins: [
|
|
11
|
+
{ name: 'anti-slop', specifier: '@siim-m/config/anti-slop' },
|
|
12
|
+
{ name: 'anti-slop-effect', specifier: '@siim-m/config/anti-slop-effect' },
|
|
13
|
+
],
|
|
14
|
+
categories: { correctness: 'error' },
|
|
15
|
+
rules: {
|
|
16
|
+
'anti-slop/no-chained-type-assertions': 'error',
|
|
17
|
+
'anti-slop/no-conditional-empty-object-spread': 'error',
|
|
18
|
+
'anti-slop/no-known-value-widening': 'error',
|
|
19
|
+
'anti-slop/no-module-mocking': 'error',
|
|
20
|
+
'anti-slop/no-object-parameters': 'error',
|
|
21
|
+
'anti-slop/no-reduce-accumulator-copy': 'error',
|
|
22
|
+
'anti-slop/no-reflect-apply': 'error',
|
|
23
|
+
'anti-slop/no-reflect-get': 'error',
|
|
24
|
+
'anti-slop/no-runtime-typeof': 'error',
|
|
25
|
+
'anti-slop/no-unknown-parameters': 'error',
|
|
26
|
+
'anti-slop/no-unknown-returns': 'error',
|
|
27
|
+
'anti-slop/no-unknown-type-aliases': 'error',
|
|
28
|
+
'anti-slop/no-unsafe-dictionary-type': 'error',
|
|
29
|
+
'anti-slop/no-widen-then-assert': 'error',
|
|
30
|
+
'anti-slop/require-pascal-case-namespace-imports': 'error',
|
|
31
|
+
'anti-slop/require-readable-spacing': 'error',
|
|
32
|
+
'anti-slop/require-safety-comment-for-type-assertion': 'error',
|
|
33
|
+
'anti-slop-effect/no-manual-effect-error-tag': 'error',
|
|
34
|
+
'anti-slop-effect/no-service-constructor-imports': 'error',
|
|
35
|
+
'anti-slop-effect/no-service-parameters': 'error',
|
|
36
|
+
'anti-slop-effect/prefer-effect-match': 'error',
|
|
37
|
+
// Spreads in reducers; anti-slop/no-reduce-accumulator-copy covers the other copies.
|
|
38
|
+
'oxc/no-accumulating-spread': 'error',
|
|
39
|
+
// Type-aware: these run only with `oxlint --type-aware` and oxlint-tsgolint installed.
|
|
40
|
+
'typescript/no-floating-promises': 'error',
|
|
41
|
+
'typescript/no-misused-promises': 'error',
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
export default preset;
|
package/package.json
CHANGED
|
@@ -1,6 +1,62 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@siim-m/config",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Shared oxlint, oxfmt and tsconfig settings, with the anti-slop oxlint plugins",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "github:siim-m/config",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"reset.d.ts",
|
|
10
|
+
"tsconfig.base.json"
|
|
11
|
+
],
|
|
12
|
+
"type": "module",
|
|
13
|
+
"exports": {
|
|
14
|
+
"./oxlint": "./dist/oxlint.js",
|
|
15
|
+
"./oxfmt": "./dist/oxfmt.js",
|
|
16
|
+
"./anti-slop": "./dist/anti-slop/index.js",
|
|
17
|
+
"./anti-slop-effect": "./dist/anti-slop/effect/index.js",
|
|
18
|
+
"./tsconfig.json": "./tsconfig.base.json",
|
|
19
|
+
"./reset.d.ts": "./reset.d.ts"
|
|
20
|
+
},
|
|
21
|
+
"publishConfig": {
|
|
22
|
+
"access": "public"
|
|
23
|
+
},
|
|
24
|
+
"scripts": {
|
|
25
|
+
"build": "rm -rf dist && tsc -p tsconfig.build.json && cp src/anti-slop/LICENSE dist/anti-slop/ && 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/",
|
|
26
|
+
"typecheck": "tsc --noEmit",
|
|
27
|
+
"test": "bun run build && node --test 'src/**/*.test.ts' 'test/*.test.ts'",
|
|
28
|
+
"format": "oxfmt",
|
|
29
|
+
"format:check": "oxfmt --check",
|
|
30
|
+
"check": "bun run typecheck && bun run test && bun run format:check",
|
|
31
|
+
"prepublishOnly": "bun run check"
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@oxlint/plugins": "^1.92.0",
|
|
35
|
+
"@total-typescript/ts-reset": "^0.6.1"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@types/node": "26.6.6",
|
|
39
|
+
"oxfmt": "0.77.0",
|
|
40
|
+
"oxlint": "1.92.0",
|
|
41
|
+
"oxlint-tsgolint": "7.0.2006",
|
|
42
|
+
"typescript": "7.0.2"
|
|
43
|
+
},
|
|
44
|
+
"peerDependencies": {
|
|
45
|
+
"@effect/tsgo": ">=0.67.5",
|
|
46
|
+
"oxfmt": ">=0.77.0",
|
|
47
|
+
"oxlint": ">=1.92.0",
|
|
48
|
+
"oxlint-tsgolint": ">=7.0.2006"
|
|
49
|
+
},
|
|
50
|
+
"peerDependenciesMeta": {
|
|
51
|
+
"@effect/tsgo": {
|
|
52
|
+
"optional": true
|
|
53
|
+
},
|
|
54
|
+
"oxfmt": {
|
|
55
|
+
"optional": true
|
|
56
|
+
},
|
|
57
|
+
"oxlint-tsgolint": {
|
|
58
|
+
"optional": true
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"packageManager": "bun@1.4.4"
|
|
62
|
+
}
|
package/reset.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
// Stricter built-in types from @total-typescript/ts-reset's recommended set. `JSON.parse`,
|
|
2
|
+
// `fetch`'s `.json()`, `Array.isArray` and a promise's `.catch` give `unknown` instead of `any`;
|
|
3
|
+
// `.filter(Boolean)` narrows; `includes`, `indexOf` and `has` accept wider values.
|
|
4
|
+
import '@total-typescript/ts-reset';
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/Effect-TS/tsgo/refs/heads/main/schema.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"strict": true,
|
|
5
|
+
"exactOptionalPropertyTypes": true,
|
|
6
|
+
"noUncheckedIndexedAccess": true,
|
|
7
|
+
"noUnusedLocals": true,
|
|
8
|
+
"noImplicitOverride": true,
|
|
9
|
+
"noFallthroughCasesInSwitch": true,
|
|
10
|
+
"noErrorTruncation": true,
|
|
11
|
+
"verbatimModuleSyntax": true,
|
|
12
|
+
"isolatedModules": true,
|
|
13
|
+
"moduleDetection": "force",
|
|
14
|
+
"erasableSyntaxOnly": true,
|
|
15
|
+
"skipLibCheck": true,
|
|
16
|
+
"plugins": [
|
|
17
|
+
{
|
|
18
|
+
"name": "@effect/language-service",
|
|
19
|
+
"effectFn": ["span", "no-span"],
|
|
20
|
+
"pipeableMinArgCount": 3,
|
|
21
|
+
"diagnosticSeverity": {
|
|
22
|
+
"effectFnOpportunity": "error",
|
|
23
|
+
"preferTypedSchemaDecoder": "error",
|
|
24
|
+
"schemaNumber": "error",
|
|
25
|
+
"missedPipeableOpportunity": "error",
|
|
26
|
+
"leakingRequirements": "error",
|
|
27
|
+
"layerMergeAllWithDependencies": "error",
|
|
28
|
+
"nodeBuiltinImport": "error",
|
|
29
|
+
"instanceOfSchema": "error",
|
|
30
|
+
"redundantSchemaTagIdentifier": "error",
|
|
31
|
+
"deterministicKeys": "error",
|
|
32
|
+
"serviceNotAsClass": "error",
|
|
33
|
+
"flatMapToMap": "error",
|
|
34
|
+
"globalJsonInEffect": "error",
|
|
35
|
+
"lazyEffect": "error",
|
|
36
|
+
"catchAllToMapError": "error",
|
|
37
|
+
"anyUnknownInErrorContext": "error",
|
|
38
|
+
"extendsNativeError": "error",
|
|
39
|
+
"unnecessaryEffectGen": "error",
|
|
40
|
+
"unnecessaryFailYieldableError": "error",
|
|
41
|
+
"unnecessaryPipe": "error",
|
|
42
|
+
"unnecessaryPipeChain": "error",
|
|
43
|
+
"unnecessaryTypeofType": "error",
|
|
44
|
+
"unsafeEffectTypeAssertion": "error",
|
|
45
|
+
"catchToOrElseSucceed": "error",
|
|
46
|
+
"effectDoNotation": "error",
|
|
47
|
+
"tryCatchInEffectGen": "error",
|
|
48
|
+
"syncToSucceed": "error",
|
|
49
|
+
"strictEffectProvide": "error",
|
|
50
|
+
"catchToIgnore": "error",
|
|
51
|
+
"catchTagToCatchReason": "error",
|
|
52
|
+
"classSelfMismatch": "error",
|
|
53
|
+
"catchChainToFirstSuccessOf": "error",
|
|
54
|
+
"effectFnIife": "error",
|
|
55
|
+
"effectFnImplicitAny": "error",
|
|
56
|
+
"effectGenUsesAdapter": "error",
|
|
57
|
+
"effectInFailure": "error",
|
|
58
|
+
"effectInVoidSuccess": "error",
|
|
59
|
+
"effectMapFlatten": "error",
|
|
60
|
+
"effectMapVoid": "error",
|
|
61
|
+
"effectSucceedWithVoid": "error",
|
|
62
|
+
"floatingEffect": "error",
|
|
63
|
+
"promiseInEffectSuccess": "error",
|
|
64
|
+
"unknownInEffectCatch": "error",
|
|
65
|
+
"globalDateInEffect": "error",
|
|
66
|
+
"processEnvInEffect": "error",
|
|
67
|
+
"schemaSyncInEffect": "error",
|
|
68
|
+
"abortControllerInEffect": "error",
|
|
69
|
+
"globalErrorInEffectCatch": "error",
|
|
70
|
+
"globalErrorInEffectFailure": "error",
|
|
71
|
+
"globalFetchInEffect": "error",
|
|
72
|
+
"lazyPromiseInEffectSync": "error",
|
|
73
|
+
"globalRandomInEffect": "error",
|
|
74
|
+
"globalTimersInEffect": "error",
|
|
75
|
+
"scopeInLayerEffect": "error",
|
|
76
|
+
"globalConsoleInEffect": "error",
|
|
77
|
+
"runEffectInsideEffect": "error",
|
|
78
|
+
"nestedEffectGenYield": "error",
|
|
79
|
+
"returnEffectInGen": "error",
|
|
80
|
+
"floatingEffectInVitest": "error",
|
|
81
|
+
"multipleEffectProvide": "error",
|
|
82
|
+
"catchUnfailableEffect": "error",
|
|
83
|
+
"unstableApiUsage": "error",
|
|
84
|
+
"missingEffectContext": "error",
|
|
85
|
+
"missingEffectError": "error",
|
|
86
|
+
"missingLayerContext": "error",
|
|
87
|
+
"missingReturnYieldStar": "error",
|
|
88
|
+
"missingStarInYieldEffectGen": "error",
|
|
89
|
+
"nonObjectEffectServiceType": "error",
|
|
90
|
+
"overriddenSchemaConstructor": "error",
|
|
91
|
+
"schemaLiteralNonFinite": "error",
|
|
92
|
+
"schemaOpaqueInstanceMember": "error",
|
|
93
|
+
"acquireReleaseDisposable": "error",
|
|
94
|
+
"allOfMapToForEach": "error",
|
|
95
|
+
"catchAllTagDispatchToCatchTag": "error",
|
|
96
|
+
"catchConditionalRefailToCatchIf": "error",
|
|
97
|
+
"catchDieToOrDie": "error",
|
|
98
|
+
"catchIfTagToCatchTag": "error",
|
|
99
|
+
"catchRefailToTapError": "error",
|
|
100
|
+
"effectSleepZeroToYieldNow": "error",
|
|
101
|
+
"effectSucceedWithUndefined": "error",
|
|
102
|
+
"errorPayloadShadowsName": "error",
|
|
103
|
+
"failCauseToConstructor": "error",
|
|
104
|
+
"flatMapConditionalToFilterOrFail": "error",
|
|
105
|
+
"flatMapIdentityToFlatten": "error",
|
|
106
|
+
"flatMapIgnoredParamToAndThen": "error",
|
|
107
|
+
"flatMapToTap": "error",
|
|
108
|
+
"manualMetricTapToTrack": "error",
|
|
109
|
+
"mapConstToAs": "error",
|
|
110
|
+
"mapSomeCatchNoSuchElement": "error",
|
|
111
|
+
"mapSomeToAsSome": "error",
|
|
112
|
+
"matchBooleanToIsSuccess": "error",
|
|
113
|
+
"matchEffectToMapBoth": "error",
|
|
114
|
+
"matchEffectToMatch": "error",
|
|
115
|
+
"matchToResultOrOption": "error",
|
|
116
|
+
"multipleCatchTag": "error",
|
|
117
|
+
"optionMatchToFromOption": "error",
|
|
118
|
+
"preferSucceedSomeOrNone": "error",
|
|
119
|
+
"preferUnsafeConstructor": "error",
|
|
120
|
+
"provideLayerSucceedToProvideService": "error",
|
|
121
|
+
"raceFirstWithSleepToTimeout": "error",
|
|
122
|
+
"redundantMapError": "error",
|
|
123
|
+
"redundantOrDie": "error",
|
|
124
|
+
"resultMatchToFromResult": "error",
|
|
125
|
+
"runOfExitToRunExit": "error",
|
|
126
|
+
"schemaClassMissingBrand": "error",
|
|
127
|
+
"schemaStructWithTag": "error",
|
|
128
|
+
"suspendFailToFailSync": "error",
|
|
129
|
+
"timeoutCatchTagToTimeoutOrElse": "error",
|
|
130
|
+
"duplicatePackage": "error",
|
|
131
|
+
"experimentalApiUsage": "error",
|
|
132
|
+
"genericEffectServices": "error",
|
|
133
|
+
"obsoleteMatchImport": "error",
|
|
134
|
+
"obsoleteSchemaImport": "error",
|
|
135
|
+
"outdatedApi": "error",
|
|
136
|
+
"schemaClassObjectLiteral": "error",
|
|
137
|
+
"effectTryWithoutCatch": "error",
|
|
138
|
+
"cryptoRandomUUIDInEffect": "error",
|
|
139
|
+
"mapMapErrorToMapBoth": "error",
|
|
140
|
+
"provideMergeAllToArray": "error",
|
|
141
|
+
"preferSchemaTypeProperty": "error",
|
|
142
|
+
"typeUnionToSchemaUnion": "error",
|
|
143
|
+
"newSchemaClass": "error"
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
]
|
|
147
|
+
}
|
|
148
|
+
}
|