@dethdkn/ox-config 1.0.17 → 1.0.19
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/.oxlintrc.json +2 -0
- package/jsrules/harlanzw.json +1 -0
- package/package.json +8 -8
- package/rules/correctness/vitest.json +3 -1
- package/rules/nursery/eslint.json +3 -1
- package/rules/nursery/typescript.json +1 -9
- package/rules/nursery/unicorn.json +5 -0
- package/rules/pedantic/unicorn.json +2 -1
- package/rules/restriction/vitest.json +5 -0
- package/rules/style/eslint.json +2 -1
- package/rules/style/typescript.json +7 -1
- package/rules/style/unicorn.json +3 -1
- package/rules/style/vitest.json +4 -2
- package/rules/suspicious/typescript.json +3 -1
package/.oxlintrc.json
CHANGED
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"./rules/restriction/jsdoc.json",
|
|
40
40
|
"./rules/restriction/node.json",
|
|
41
41
|
"./rules/restriction/promise.json",
|
|
42
|
+
"./rules/restriction/vitest.json",
|
|
42
43
|
"./rules/restriction/vue.json",
|
|
43
44
|
"./rules/suspicious/eslint.json",
|
|
44
45
|
"./rules/suspicious/typescript.json",
|
|
@@ -62,6 +63,7 @@
|
|
|
62
63
|
"./rules/style/vue.json",
|
|
63
64
|
"./rules/nursery/eslint.json",
|
|
64
65
|
"./rules/nursery/typescript.json",
|
|
66
|
+
"./rules/nursery/unicorn.json",
|
|
65
67
|
"./rules/nursery/oxc.json",
|
|
66
68
|
"./rules/nursery/import.json",
|
|
67
69
|
"./rules/nursery/promise.json",
|
package/jsrules/harlanzw.json
CHANGED
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"harlanzw/vue-no-ref-access-in-templates": "error",
|
|
26
26
|
"harlanzw/vue-no-torefs-on-props": "error",
|
|
27
27
|
"harlanzw/vue-no-resolve-component-in-composables": "error",
|
|
28
|
+
"harlanzw/vue-no-unresolvable-define-emits": "error",
|
|
28
29
|
"harlanzw/vue-require-composable-prefix": "error"
|
|
29
30
|
}
|
|
30
31
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dethdkn/ox-config",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.19",
|
|
4
4
|
"description": "⚓ My Opinionated OX Config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"oxfmt",
|
|
@@ -43,17 +43,17 @@
|
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@nuxt/eslint-plugin": "^1.15.2",
|
|
45
45
|
"eslint-plugin-antfu": "^3.2.2",
|
|
46
|
-
"eslint-plugin-harlanzw": "^0.
|
|
46
|
+
"eslint-plugin-harlanzw": "^0.12.1",
|
|
47
47
|
"eslint-plugin-regexp": "^3.1.0",
|
|
48
48
|
"eslint-plugin-security": "^4.0.0",
|
|
49
|
-
"oxfmt": "^0.
|
|
50
|
-
"oxlint": "^1.
|
|
51
|
-
"oxlint-tsgolint": "^0.
|
|
49
|
+
"oxfmt": "^0.44.0",
|
|
50
|
+
"oxlint": "^1.59.0",
|
|
51
|
+
"oxlint-tsgolint": "^0.20.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"bumpp": "^11.0.1",
|
|
55
|
-
"typescript": "^
|
|
56
|
-
"vue": "^3.5.
|
|
55
|
+
"typescript": "^6.0.2",
|
|
56
|
+
"vue": "^3.5.32"
|
|
57
57
|
},
|
|
58
|
-
"packageManager": "bun@1.3.
|
|
58
|
+
"packageManager": "bun@1.3.12"
|
|
59
59
|
}
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
"vitest/require-local-test-context-for-concurrent-snapshots": ["error"],
|
|
5
5
|
"vitest/warn-todo": ["error"],
|
|
6
6
|
"vitest/consistent-each-for": ["error"],
|
|
7
|
-
"vitest/hoisted-apis-on-top": ["error"]
|
|
7
|
+
"vitest/hoisted-apis-on-top": ["error"],
|
|
8
|
+
"vitest/require-mock-type-parameters": ["error"],
|
|
9
|
+
"vitest/require-awaited-expect-poll": ["error"]
|
|
8
10
|
}
|
|
9
11
|
}
|
|
@@ -2,18 +2,10 @@
|
|
|
2
2
|
"rules": {
|
|
3
3
|
"typescript/prefer-optional-chain": ["error"],
|
|
4
4
|
"typescript/no-unnecessary-condition": ["error"],
|
|
5
|
-
"typescript/dot-notation": ["error"],
|
|
6
5
|
"typescript/no-useless-default-assignment": ["error"],
|
|
7
6
|
"typescript/no-unnecessary-type-parameters": ["error"],
|
|
8
|
-
"typescript/consistent-return": ["error"],
|
|
9
|
-
"typescript/prefer-string-starts-ends-with": ["error"],
|
|
10
|
-
"typescript/prefer-regexp-exec": ["error"],
|
|
11
|
-
"typescript/prefer-readonly": ["error"],
|
|
12
7
|
"typescript/no-unnecessary-qualifier": ["error"],
|
|
13
|
-
"typescript/prefer-find": ["error"],
|
|
14
8
|
"typescript/prefer-readonly-parameter-types": ["off"],
|
|
15
|
-
"typescript/strict-void-return": ["error"]
|
|
16
|
-
"typescript/consistent-type-exports": ["error"],
|
|
17
|
-
"typescript/no-unnecessary-type-conversion": ["error"]
|
|
9
|
+
"typescript/strict-void-return": ["error"]
|
|
18
10
|
}
|
|
19
11
|
}
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
"unicorn/prefer-string-slice": ["error"],
|
|
44
44
|
"unicorn/prefer-top-level-await": ["error"],
|
|
45
45
|
"unicorn/prefer-type-error": ["error"],
|
|
46
|
-
"unicorn/require-number-to-fixed-digits-argument": ["error"]
|
|
46
|
+
"unicorn/require-number-to-fixed-digits-argument": ["error"],
|
|
47
|
+
"unicorn/prefer-import-meta-properties": ["error"]
|
|
47
48
|
}
|
|
48
49
|
}
|
package/rules/style/eslint.json
CHANGED
|
@@ -15,6 +15,12 @@
|
|
|
15
15
|
"typescript/prefer-return-this-type": ["error"],
|
|
16
16
|
"typescript/class-literal-property-style": ["error"],
|
|
17
17
|
"typescript/unified-signatures": ["error"],
|
|
18
|
-
"typescript/parameter-properties": ["error"]
|
|
18
|
+
"typescript/parameter-properties": ["error"],
|
|
19
|
+
"typescript/prefer-string-starts-ends-with": ["error"],
|
|
20
|
+
"typescript/prefer-readonly": ["error"],
|
|
21
|
+
"typescript/prefer-regexp-exec": ["error"],
|
|
22
|
+
"typescript/prefer-find": ["error"],
|
|
23
|
+
"typescript/dot-notation": ["error"],
|
|
24
|
+
"typescript/consistent-type-exports": ["error"]
|
|
19
25
|
}
|
|
20
26
|
}
|
package/rules/style/unicorn.json
CHANGED
|
@@ -41,6 +41,8 @@
|
|
|
41
41
|
"unicorn/switch-case-braces": ["error"],
|
|
42
42
|
"unicorn/text-encoding-identifier-case": ["error"],
|
|
43
43
|
"unicorn/throw-new-error": ["error"],
|
|
44
|
-
"unicorn/relative-url-style": ["error"]
|
|
44
|
+
"unicorn/relative-url-style": ["error"],
|
|
45
|
+
"unicorn/custom-error-definition": ["error"],
|
|
46
|
+
"unicorn/switch-case-break-position": ["error"]
|
|
45
47
|
}
|
|
46
48
|
}
|
package/rules/style/vitest.json
CHANGED
|
@@ -6,12 +6,14 @@
|
|
|
6
6
|
"vitest/prefer-called-times": ["error"],
|
|
7
7
|
"vitest/prefer-to-be-falsy": ["error"],
|
|
8
8
|
"vitest/prefer-to-be-object": ["error"],
|
|
9
|
-
"vitest/prefer-to-be-truthy": ["
|
|
9
|
+
"vitest/prefer-to-be-truthy": ["off"],
|
|
10
10
|
"vitest/prefer-called-once": ["off"],
|
|
11
11
|
"vitest/prefer-describe-function-title": ["error"],
|
|
12
12
|
"vitest/no-unneeded-async-expect-function": ["error"],
|
|
13
13
|
"vitest/prefer-expect-type-of": ["error"],
|
|
14
14
|
"vitest/no-importing-vitest-globals": ["off"],
|
|
15
|
-
"vitest/prefer-import-in-mock": ["error"]
|
|
15
|
+
"vitest/prefer-import-in-mock": ["error"],
|
|
16
|
+
"vitest/prefer-strict-boolean-matchers": ["error"],
|
|
17
|
+
"vitest/prefer-called-exactly-once-with": ["error"]
|
|
16
18
|
}
|
|
17
19
|
}
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
"typescript/no-unnecessary-type-assertion": ["error"],
|
|
9
9
|
"typescript/no-unnecessary-type-constraint": ["error"],
|
|
10
10
|
"typescript/no-unsafe-enum-comparison": ["error"],
|
|
11
|
-
"typescript/no-unsafe-type-assertion": ["error"]
|
|
11
|
+
"typescript/no-unsafe-type-assertion": ["error"],
|
|
12
|
+
"typescript/consistent-return": ["error"],
|
|
13
|
+
"typescript/no-unnecessary-type-conversion": ["error"]
|
|
12
14
|
}
|
|
13
15
|
}
|