two-stroke 8.0.2 → 8.0.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/.knip.json +1 -1
- package/oxfmt.config.mjs +15 -0
- package/oxlint.config.mjs +90 -0
- package/package.json +1 -1
package/.knip.json
CHANGED
package/oxfmt.config.mjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { defineConfig } from "oxfmt";
|
|
2
|
+
|
|
3
|
+
export default defineConfig({
|
|
4
|
+
sortImports: {
|
|
5
|
+
newlinesBetween: false,
|
|
6
|
+
groups: [
|
|
7
|
+
["value-builtin", "value-external"],
|
|
8
|
+
["value-internal", "value-parent", "value-sibling", "value-index"],
|
|
9
|
+
{ newlinesBetween: true },
|
|
10
|
+
"type-import",
|
|
11
|
+
"unknown",
|
|
12
|
+
],
|
|
13
|
+
},
|
|
14
|
+
ignorePatterns: ["worker-configuration.d.ts", "wrangler.jsonc"],
|
|
15
|
+
});
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { defineConfig } from "oxlint";
|
|
2
|
+
|
|
3
|
+
export default defineConfig({
|
|
4
|
+
plugins: ["eslint", "typescript", "unicorn", "oxc", "import", "promise", "vitest"],
|
|
5
|
+
options: {
|
|
6
|
+
typeAware: true,
|
|
7
|
+
},
|
|
8
|
+
categories: {
|
|
9
|
+
correctness: "error",
|
|
10
|
+
suspicious: "warn",
|
|
11
|
+
perf: "error",
|
|
12
|
+
style: "warn",
|
|
13
|
+
},
|
|
14
|
+
rules: {
|
|
15
|
+
"no-map-spread": "off",
|
|
16
|
+
"no-named-export": "off",
|
|
17
|
+
"no-magic-numbers": "off",
|
|
18
|
+
"consistent-indexed-object-style": "off",
|
|
19
|
+
"id-length": "off",
|
|
20
|
+
"no-await-expression-member": "off",
|
|
21
|
+
"max-nested-calls": "off",
|
|
22
|
+
"sort-keys": "off",
|
|
23
|
+
curly: "off",
|
|
24
|
+
"switch-case-braces": "off",
|
|
25
|
+
"vitest/require-hook": "off",
|
|
26
|
+
"no-ternary": "off",
|
|
27
|
+
"group-exports": "off",
|
|
28
|
+
"exports-last": "off",
|
|
29
|
+
"prefer-default-export": "off",
|
|
30
|
+
"no-null": "off",
|
|
31
|
+
"consistent-type-specifier-style": "off",
|
|
32
|
+
"max-statements": "off",
|
|
33
|
+
"consistent-type-imports": "error",
|
|
34
|
+
"relative-url-style": ["error", "always"],
|
|
35
|
+
"no-namespace": "off",
|
|
36
|
+
"no-duplicate-imports": ["error", { allowSeparateTypeImports: true }],
|
|
37
|
+
"func-style": "off",
|
|
38
|
+
"sort-imports": [
|
|
39
|
+
"error",
|
|
40
|
+
{
|
|
41
|
+
ignoreDeclarationSort: true,
|
|
42
|
+
ignoreMemberSort: false,
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
"new-cap": "off",
|
|
46
|
+
"promise/prefer-await-to-callbacks": "off",
|
|
47
|
+
"promise/avoid-new": "off",
|
|
48
|
+
"prefer-await-to-then": "off",
|
|
49
|
+
"max-params": "off",
|
|
50
|
+
"no-underscore-dangle": "off",
|
|
51
|
+
"no-nested-ternary": "off",
|
|
52
|
+
"unicorn/no-nested-ternary": "off",
|
|
53
|
+
"no-anonymous-default-export": "off",
|
|
54
|
+
"no-continue": "off",
|
|
55
|
+
"init-declarations": "off",
|
|
56
|
+
"prefer-to-be-truthy": "off",
|
|
57
|
+
"vitest/prefer-expect-assertions": "off",
|
|
58
|
+
"vitest/prefer-importing-vitest-globals": "off",
|
|
59
|
+
"vitest/no-importing-vitest-globals": "error",
|
|
60
|
+
"vitest/require-top-level-describe": "off",
|
|
61
|
+
"vitest/max-expects": "off",
|
|
62
|
+
"vitest/no-hooks": "off",
|
|
63
|
+
},
|
|
64
|
+
overrides: [
|
|
65
|
+
{
|
|
66
|
+
files: ["*.test.ts", "*.spec.ts"],
|
|
67
|
+
rules: {
|
|
68
|
+
"@typescript-eslint/no-explicit-any": "off",
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
files: ["*-definitions.ts"],
|
|
73
|
+
rules: {
|
|
74
|
+
"no-unused-vars": "off",
|
|
75
|
+
"@typescript-eslint/no-redundant-type-constituents": "off",
|
|
76
|
+
"@typescript-eslint/no-duplicate-type-constituents": "off",
|
|
77
|
+
"group-exports": "off",
|
|
78
|
+
"exports-last": "off",
|
|
79
|
+
"consistent-indexed-object-style": "off",
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
files: ["bin/*.mjs", "src/cmd.mjs"],
|
|
84
|
+
rules: {
|
|
85
|
+
"import/no-nodejs-modules": "off",
|
|
86
|
+
"prefer-destructuring": "off",
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
],
|
|
90
|
+
});
|