@dethdkn/ox-config 1.0.20 → 1.0.22
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 +1 -0
- package/package.json +9 -9
- package/rules/correctness/eslint.json +1 -0
- package/rules/correctness/vitest.json +3 -0
- package/rules/correctness/vue.json +2 -0
- package/rules/pedantic/eslint.json +1 -0
- package/rules/pedantic/jsdoc.json +2 -0
- package/rules/pedantic/unicorn.json +1 -0
- package/rules/restriction/eslint.json +4 -1
- package/rules/restriction/import.json +2 -1
- package/rules/restriction/typescript.json +2 -2
- package/rules/restriction/unicorn.json +1 -2
- package/rules/style/eslint.json +4 -0
- package/rules/style/import.json +2 -2
- package/rules/style/jsdoc.json +5 -0
- package/rules/style/typescript.json +1 -0
- package/rules/style/unicorn.json +1 -0
- package/rules/style/vitest.json +19 -0
- package/rules/suspicious/eslint.json +1 -0
package/.oxlintrc.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dethdkn/ox-config",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.22",
|
|
4
4
|
"description": "⚓ My Opinionated OX Config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"oxfmt",
|
|
@@ -42,18 +42,18 @@
|
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@nuxt/eslint-plugin": "^1.15.2",
|
|
45
|
-
"eslint-plugin-antfu": "^3.2.
|
|
46
|
-
"eslint-plugin-harlanzw": "^0.
|
|
45
|
+
"eslint-plugin-antfu": "^3.2.3",
|
|
46
|
+
"eslint-plugin-harlanzw": "^0.15.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.51.0",
|
|
50
|
+
"oxlint": "^1.66.0",
|
|
51
|
+
"oxlint-tsgolint": "^0.23.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"bumpp": "^11.0
|
|
54
|
+
"bumpp": "^11.1.0",
|
|
55
55
|
"typescript": "^6.0.3",
|
|
56
|
-
"vue": "^3.5.
|
|
56
|
+
"vue": "^3.5.34"
|
|
57
57
|
},
|
|
58
|
-
"packageManager": "bun@1.3.
|
|
58
|
+
"packageManager": "bun@1.3.14"
|
|
59
59
|
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"rules": {
|
|
3
|
+
"vitest/prefer-snapshot-hint": ["error"],
|
|
4
|
+
"vitest/require-to-throw-message": ["error"],
|
|
5
|
+
"vitest/valid-describe-callback": ["error"],
|
|
3
6
|
"vitest/no-conditional-tests": ["error"],
|
|
4
7
|
"vitest/require-local-test-context-for-concurrent-snapshots": ["error"],
|
|
5
8
|
"vitest/warn-todo": ["error"],
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"rules": {
|
|
3
|
+
"eslint/no-implicit-globals": ["off"],
|
|
4
|
+
"eslint/no-restricted-properties": ["off"],
|
|
5
|
+
"eslint/no-use-before-define": ["off"],
|
|
3
6
|
"eslint/class-methods-use-this": ["error"],
|
|
4
7
|
"eslint/complexity": ["off"],
|
|
5
8
|
"eslint/default-case": ["error"],
|
|
@@ -25,7 +28,7 @@
|
|
|
25
28
|
"eslint/no-proto": ["error"],
|
|
26
29
|
"eslint/no-regex-spaces": ["error"],
|
|
27
30
|
"eslint/no-restricted-globals": ["off"],
|
|
28
|
-
"no-restricted-imports": [
|
|
31
|
+
"eslint/no-restricted-imports": [
|
|
29
32
|
"error",
|
|
30
33
|
[
|
|
31
34
|
{
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"rules": {
|
|
3
|
+
"typescript/explicit-member-accessibility": ["off"],
|
|
3
4
|
"typescript/explicit-function-return-type": ["error"],
|
|
4
5
|
"typescript/explicit-module-boundary-types": ["error"],
|
|
5
6
|
"typescript/no-dynamic-delete": ["error"],
|
|
@@ -16,7 +17,6 @@
|
|
|
16
17
|
"typescript/prefer-literal-enum-member": ["error"],
|
|
17
18
|
"typescript/promise-function-async": ["off"],
|
|
18
19
|
"typescript/use-unknown-in-catch-callback-variable": ["error"],
|
|
19
|
-
"typescript/no-invalid-void-type": ["error"]
|
|
20
|
-
"typescript/no-use-before-define": ["off"]
|
|
20
|
+
"typescript/no-invalid-void-type": ["error"]
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
"unicorn/prefer-modern-math-apis": ["error"],
|
|
13
13
|
"unicorn/prefer-node-protocol": ["off"],
|
|
14
14
|
"unicorn/prefer-number-properties": ["error"],
|
|
15
|
-
"unicorn/prefer-module": ["error"]
|
|
16
|
-
"unicorn/prefer-ternary": ["error"]
|
|
15
|
+
"unicorn/prefer-module": ["error"]
|
|
17
16
|
}
|
|
18
17
|
}
|
package/rules/style/eslint.json
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"rules": {
|
|
3
|
+
"eslint/id-match": ["off"],
|
|
4
|
+
"eslint/logical-assignment-operators": ["off"],
|
|
5
|
+
"eslint/prefer-arrow-callback": ["off"],
|
|
6
|
+
"eslint/prefer-regex-literals": ["off"],
|
|
3
7
|
"eslint/arrow-body-style": ["error", "as-needed"],
|
|
4
8
|
"eslint/capitalized-comments": ["off"],
|
|
5
9
|
"eslint/curly": ["error", "multi-line"],
|
package/rules/style/import.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"rules": {
|
|
3
|
+
"import/newline-after-import": ["off"],
|
|
3
4
|
"import/consistent-type-specifier-style": ["error"],
|
|
4
5
|
"import/exports-last": ["error"],
|
|
5
6
|
"import/first": ["error"],
|
|
@@ -11,7 +12,6 @@
|
|
|
11
12
|
"import/no-named-export": ["off"],
|
|
12
13
|
"import/no-namespace": ["error"],
|
|
13
14
|
"import/prefer-default-export": ["off"],
|
|
14
|
-
"import/no-nodejs-modules": ["off"]
|
|
15
|
-
"import/no-relative-parent-imports": ["off"]
|
|
15
|
+
"import/no-nodejs-modules": ["off"]
|
|
16
16
|
}
|
|
17
17
|
}
|
package/rules/style/unicorn.json
CHANGED
package/rules/style/vitest.json
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"rules": {
|
|
3
|
+
"vitest/no-test-prefixes": ["error"],
|
|
4
|
+
"vitest/no-test-return-statement": ["error"],
|
|
5
|
+
"vitest/padding-around-after-all-blocks": ["error"],
|
|
6
|
+
"vitest/prefer-called-with": ["error"],
|
|
7
|
+
"vitest/prefer-comparison-matcher": ["error"],
|
|
8
|
+
"vitest/prefer-each": ["error"],
|
|
9
|
+
"vitest/prefer-equality-matcher": ["error"],
|
|
10
|
+
"vitest/prefer-expect-resolves": ["error"],
|
|
11
|
+
"vitest/prefer-hooks-in-order": ["error"],
|
|
12
|
+
"vitest/prefer-hooks-on-top": ["error"],
|
|
13
|
+
"vitest/prefer-lowercase-title": ["error"],
|
|
14
|
+
"vitest/prefer-mock-promise-shorthand": ["error"],
|
|
15
|
+
"vitest/prefer-mock-return-shorthand": ["error"],
|
|
16
|
+
"vitest/prefer-spy-on": ["error"],
|
|
17
|
+
"vitest/prefer-strict-equal": ["error"],
|
|
18
|
+
"vitest/prefer-to-be": ["error"],
|
|
19
|
+
"vitest/prefer-to-have-been-called-times": ["error"],
|
|
20
|
+
"vitest/prefer-to-have-length": ["error"],
|
|
21
|
+
"vitest/require-hook": ["off"],
|
|
3
22
|
"vitest/consistent-test-filename": ["off"],
|
|
4
23
|
"vitest/consistent-vitest-vi": ["off"],
|
|
5
24
|
"vitest/no-import-node-test": ["error"],
|