@danieljvdm/dev-kit 0.3.1 → 0.3.3
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/package.json +1 -1
- package/skills/effect-ts/references/guide-cli.md +2 -1
- package/src/oxlint.js +12 -0
- package/src/oxlint.ts +12 -0
package/package.json
CHANGED
|
@@ -99,7 +99,8 @@ Run the narrowest meaningful checks:
|
|
|
99
99
|
|
|
100
100
|
- Confirm that every TypeScript entrypoint named by `package.json` belongs to
|
|
101
101
|
one checked TypeScript project.
|
|
102
|
-
-
|
|
102
|
+
- The repository's root `check` or typecheck script when the entrypoint belongs
|
|
103
|
+
to the root project.
|
|
103
104
|
- Package-level `bun run check` when the script lives under an app/package and is included in that TS config.
|
|
104
105
|
- The command's `--help` path.
|
|
105
106
|
- A dry-run or harmless invalid-input path that loads the entrypoint and
|
package/src/oxlint.js
CHANGED
|
@@ -19,8 +19,12 @@ export const recommendedOxlintConfig = {
|
|
|
19
19
|
"react/exhaustive-deps": "error",
|
|
20
20
|
"react/rules-of-hooks": "error",
|
|
21
21
|
"typescript/consistent-type-imports": "error",
|
|
22
|
+
"typescript/no-floating-promises": "off",
|
|
22
23
|
"typescript/no-explicit-any": "error",
|
|
24
|
+
"typescript/no-misused-spread": "off",
|
|
23
25
|
"typescript/no-non-null-assertion": "error",
|
|
26
|
+
"typescript/require-array-sort-compare": "off",
|
|
27
|
+
"typescript/restrict-template-expressions": "off",
|
|
24
28
|
"typescript/switch-exhaustiveness-check": "error",
|
|
25
29
|
"unicorn/prefer-node-protocol": "error",
|
|
26
30
|
"vitest/no-focused-tests": "error",
|
|
@@ -28,4 +32,12 @@ export const recommendedOxlintConfig = {
|
|
|
28
32
|
"vitest/no-standalone-expect": "off",
|
|
29
33
|
"vitest/valid-expect": "error",
|
|
30
34
|
},
|
|
35
|
+
overrides: [
|
|
36
|
+
{
|
|
37
|
+
files: ["**/*.test.{ts,tsx}", "**/*.spec.{ts,tsx}"],
|
|
38
|
+
rules: {
|
|
39
|
+
"typescript/no-non-null-assertion": "off",
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
],
|
|
31
43
|
};
|
package/src/oxlint.ts
CHANGED
|
@@ -21,8 +21,12 @@ export const recommendedOxlintConfig = {
|
|
|
21
21
|
"react/exhaustive-deps": "error",
|
|
22
22
|
"react/rules-of-hooks": "error",
|
|
23
23
|
"typescript/consistent-type-imports": "error",
|
|
24
|
+
"typescript/no-floating-promises": "off",
|
|
24
25
|
"typescript/no-explicit-any": "error",
|
|
26
|
+
"typescript/no-misused-spread": "off",
|
|
25
27
|
"typescript/no-non-null-assertion": "error",
|
|
28
|
+
"typescript/require-array-sort-compare": "off",
|
|
29
|
+
"typescript/restrict-template-expressions": "off",
|
|
26
30
|
"typescript/switch-exhaustiveness-check": "error",
|
|
27
31
|
"unicorn/prefer-node-protocol": "error",
|
|
28
32
|
"vitest/no-focused-tests": "error",
|
|
@@ -30,6 +34,14 @@ export const recommendedOxlintConfig = {
|
|
|
30
34
|
"vitest/no-standalone-expect": "off",
|
|
31
35
|
"vitest/valid-expect": "error",
|
|
32
36
|
},
|
|
37
|
+
overrides: [
|
|
38
|
+
{
|
|
39
|
+
files: ["**/*.test.{ts,tsx}", "**/*.spec.{ts,tsx}"],
|
|
40
|
+
rules: {
|
|
41
|
+
"typescript/no-non-null-assertion": "off",
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
],
|
|
33
45
|
} satisfies OxlintConfig;
|
|
34
46
|
|
|
35
47
|
export type RecommendedOxlintConfig = typeof recommendedOxlintConfig;
|