Skip to content

Commit baefa27

Browse files
authored
Merge pull request #15 from RATIU5/chore/effect-4
Chore/effect 4
2 parents 36eb444 + ac8cc1e commit baefa27

1,658 files changed

Lines changed: 558526 additions & 418 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- uses: actions/checkout@v4
3030
- name: Install dependencies
3131
uses: ./.github/actions/setup
32-
- run: bun run typecheck
32+
- run: bun run --filter '*' typecheck
3333
lint-format:
3434
name: Lint & Format Check
3535
runs-on: ubuntu-latest
@@ -41,4 +41,4 @@ jobs:
4141
- name: Lint
4242
run: bun run lint:check
4343
- name: Format
44-
run: bun run format:check
44+
run: bun run fmt:check

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ package-lock.json
2121
**/*.bun
2222
TODO.md
2323
.svelte-kit/
24+
.reference

.oxfmtrc.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"$schema": "./node_modules/oxfmt/configuration_schema.json",
3+
"printWidth": 80,
4+
"tabWidth": 2,
5+
"useTabs": false,
6+
"semi": true,
7+
"singleQuote": false,
8+
"jsxSingleQuote": true,
9+
"trailingComma": "all",
10+
"bracketSpacing": true,
11+
"arrowParens": "always",
12+
"endOfLine": "lf",
13+
"insertFinalNewline": true,
14+
"ignorePatterns": ["**/*.svelte"],
15+
"sortImports": {
16+
"groups": [
17+
"type-import",
18+
["value-builtin", "value-external"],
19+
"value-internal",
20+
["value-parent", "value-sibling", "value-index"],
21+
["type-parent", "type-sibling", "type-index"],
22+
"unknown"
23+
],
24+
"newlinesBetween": true,
25+
"order": "asc"
26+
}
27+
}

.oxlintrc.json

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
{
2+
"$schema": "./node_modules/oxlint/configuration_schema.json",
3+
"plugins": ["typescript", "unicorn", "oxc", "import", "promise", "node"],
4+
"categories": {
5+
"correctness": "error",
6+
"suspicious": "error",
7+
"perf": "warn",
8+
"pedantic": "warn",
9+
"style": "warn"
10+
},
11+
"options": {
12+
"typeAware": true
13+
},
14+
"rules": {
15+
"sort-imports": "off",
16+
"new-cap": "off",
17+
"no-ternary": "off",
18+
"no-negated-condition": "off",
19+
"max-classes-per-file": "off",
20+
"import/no-named-export": "off",
21+
"import/group-exports": "off",
22+
"import/no-namespace": "off",
23+
"import/no-unassigned-import": "off",
24+
"promise/prefer-await-to-callbacks": "off",
25+
"promise/prefer-await-to-then": "off",
26+
"unicorn/prefer-top-level-await": "off",
27+
"unicorn/no-useless-undefined": "off",
28+
"no-magic-numbers": "off",
29+
"id-length": [
30+
"warn",
31+
{ "min": 1, "exceptions": ["e", "m", "i", "j", "k", "_"] }
32+
],
33+
"unicorn/no-null": "warn",
34+
"no-console": "warn",
35+
"eqeqeq": "error",
36+
"no-var": "error",
37+
"import/no-cycle": "error",
38+
"typescript/no-explicit-any": "error",
39+
"typescript/no-non-null-assertion": "warn",
40+
"typescript/consistent-type-imports": [
41+
"error",
42+
{
43+
"prefer": "type-imports",
44+
"fixStyle": "inline-type-imports",
45+
"disallowTypeAnnotations": false
46+
}
47+
],
48+
"import/consistent-type-specifier-style": ["error", "prefer-inline"],
49+
"no-restricted-imports": [
50+
"error",
51+
{
52+
"paths": [
53+
{
54+
"name": "effect",
55+
"allowImportNames": [
56+
// Utilities with no deep-path equivalent
57+
"pipe",
58+
"flow",
59+
"identity",
60+
"absurd",
61+
"hole",
62+
"satisfies",
63+
"tuple",
64+
"constTrue",
65+
"constFalse",
66+
"constNull",
67+
"constUndefined",
68+
"constVoid"
69+
],
70+
"message": "Use deep namespace import instead, e.g. `import * as Effect from 'effect/Effect'`"
71+
}
72+
]
73+
}
74+
]
75+
},
76+
"ignorePatterns": ["dist/**", "node_modules/**", ".svelte-kit/**"],
77+
"overrides": [
78+
{
79+
"files": ["**/src/lib/index.ts"],
80+
"rules": {
81+
"unicorn/no-empty-file": "off"
82+
}
83+
},
84+
{
85+
"files": [
86+
"**/*.config.ts",
87+
"**/*.config.js",
88+
"**/setupTests.ts",
89+
"**/setup-tests.ts"
90+
],
91+
"rules": {
92+
"import/no-nodejs-modules": "off",
93+
"import/no-namespace": "off",
94+
"typescript/no-unsafe-call": "off",
95+
"typescript/no-unsafe-member-access": "off"
96+
}
97+
},
98+
{
99+
"files": ["**/*.svelte"],
100+
"rules": {
101+
"prefer-const": "off",
102+
"no-unused-vars": "off",
103+
"no-undef": "off"
104+
}
105+
},
106+
{
107+
"files": ["**/*.test.ts", "**/*.spec.ts", "**/test/**/*.ts"],
108+
"rules": {
109+
"typescript/no-explicit-any": "off",
110+
"no-console": "off"
111+
}
112+
},
113+
{
114+
"files": ["**/*.config.ts", "**/*.config.js"],
115+
"rules": {
116+
"no-restricted-imports": "off"
117+
}
118+
}
119+
]
120+
}

.prototools

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
bun = "1.3.5"
1+
bun = "1.3.10"
Lines changed: 5 additions & 0 deletions
Lines changed: 5 additions & 0 deletions
Lines changed: 5 additions & 0 deletions
Lines changed: 5 additions & 0 deletions
Lines changed: 11 additions & 0 deletions

0 commit comments

Comments
 (0)