@dethdkn/ox-config 1.0.16 → 1.0.18

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 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",
@@ -17,12 +17,15 @@
17
17
  "harlanzw/nuxt-no-unsafe-date": "error",
18
18
  "harlanzw/nuxt-prefer-navigate-to-over-router-push-replace": "error",
19
19
  "harlanzw/nuxt-prefer-nuxt-link-over-router-link": "error",
20
+ "harlanzw/nuxt-ui-prefer-shorthand-css": "error",
20
21
  "harlanzw/vue-no-faux-composables": "error",
21
22
  "harlanzw/vue-no-nested-reactivity": "error",
22
23
  "harlanzw/vue-no-passing-refs-as-props": "off",
23
24
  "harlanzw/vue-no-reactive-destructuring": "error",
24
25
  "harlanzw/vue-no-ref-access-in-templates": "error",
25
26
  "harlanzw/vue-no-torefs-on-props": "error",
27
+ "harlanzw/vue-no-resolve-component-in-composables": "error",
28
+ "harlanzw/vue-no-unresolvable-define-emits": "error",
26
29
  "harlanzw/vue-require-composable-prefix": "error"
27
30
  }
28
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dethdkn/ox-config",
3
- "version": "1.0.16",
3
+ "version": "1.0.18",
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.5.17",
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.40.0",
50
- "oxlint": "^1.55.0",
51
- "oxlint-tsgolint": "^0.16.0"
49
+ "oxfmt": "^0.44.0",
50
+ "oxlint": "^1.59.0",
51
+ "oxlint-tsgolint": "^0.20.0"
52
52
  },
53
53
  "devDependencies": {
54
- "bumpp": "^10.4.1",
55
- "typescript": "^5.9.3",
56
- "vue": "^3.5.30"
54
+ "bumpp": "^11.0.1",
55
+ "typescript": "^6.0.2",
56
+ "vue": "^3.5.32"
57
57
  },
58
- "packageManager": "bun@1.3.10"
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,6 +2,8 @@
2
2
  "rules": {
3
3
  "eslint/getter-return": ["error"],
4
4
  "eslint/no-undef": ["off"],
5
- "eslint/no-unreachable": ["error"]
5
+ "eslint/no-unreachable": ["error"],
6
+ "eslint/no-restricted-exports": ["off"],
7
+ "eslint/no-useless-assignment": ["off"]
6
8
  }
7
9
  }
@@ -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
  }
@@ -0,0 +1,5 @@
1
+ {
2
+ "rules": {
3
+ "unicorn/no-useless-iterator-to-array": ["error"]
4
+ }
5
+ }
@@ -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
  }
@@ -2,6 +2,7 @@
2
2
  "rules": {
3
3
  "node/no-new-require": ["error"],
4
4
  "node/no-process-env": ["error"],
5
- "node/no-path-concat": ["error"]
5
+ "node/no-path-concat": ["error"],
6
+ "node/handle-callback-err": ["error", "^(err|error)$"]
6
7
  }
7
8
  }
@@ -0,0 +1,5 @@
1
+ {
2
+ "rules": {
3
+ "vitest/require-test-timeout": ["off"]
4
+ }
5
+ }
@@ -60,6 +60,7 @@
60
60
  "eslint/sort-keys": ["off"],
61
61
  "eslint/vars-on-top": ["error"],
62
62
  "eslint/yoda": ["error"],
63
- "eslint/prefer-const": ["error"]
63
+ "eslint/prefer-const": ["error"],
64
+ "eslint/object-shorthand": ["error"]
64
65
  }
65
66
  }
@@ -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
  }
@@ -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
  }
@@ -12,6 +12,8 @@
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
  }