@dethdkn/ox-config 1.0.21 → 1.0.23
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 -1
- package/jsrules/harlanzw-wrapper.js +1 -0
- package/package.json +8 -8
- package/rules/correctness/vitest.json +0 -1
- package/rules/correctness/vue.json +18 -1
- package/rules/overrides/unicorn.json +22 -0
- package/rules/pedantic/unicorn.json +3 -1
- package/rules/restriction/unicorn.json +1 -0
- package/rules/style/eslint.json +2 -1
- package/rules/style/jsdoc.json +2 -1
- package/rules/style/node.json +4 -1
- package/rules/style/typescript.json +2 -1
- package/rules/style/unicorn.json +3 -1
- package/rules/style/vitest.json +3 -2
- package/rules/style/vue.json +7 -1
- package/rules/suspicious/unicorn.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.23",
|
|
4
4
|
"description": "⚓ My Opinionated OX Config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"oxfmt",
|
|
@@ -41,19 +41,19 @@
|
|
|
41
41
|
"release": "bun run prerelease && bumpp && sudo npm publish"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@nuxt/eslint-plugin": "^1.
|
|
44
|
+
"@nuxt/eslint-plugin": "^1.16.0",
|
|
45
45
|
"eslint-plugin-antfu": "^3.2.3",
|
|
46
|
-
"eslint-plugin-harlanzw": "^0.
|
|
47
|
-
"eslint-plugin-regexp": "^3.1.
|
|
48
|
-
"eslint-plugin-security": "^4.0.
|
|
49
|
-
"oxfmt": "^0.
|
|
50
|
-
"oxlint": "^1.
|
|
46
|
+
"eslint-plugin-harlanzw": "^0.17.0",
|
|
47
|
+
"eslint-plugin-regexp": "^3.1.1",
|
|
48
|
+
"eslint-plugin-security": "^4.0.1",
|
|
49
|
+
"oxfmt": "^0.56.0",
|
|
50
|
+
"oxlint": "^1.71.0",
|
|
51
51
|
"oxlint-tsgolint": "^0.23.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"bumpp": "^11.1.0",
|
|
55
55
|
"typescript": "^6.0.3",
|
|
56
|
-
"vue": "^3.5.
|
|
56
|
+
"vue": "^3.5.39"
|
|
57
57
|
},
|
|
58
58
|
"packageManager": "bun@1.3.14"
|
|
59
59
|
}
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
"vitest/no-conditional-tests": ["error"],
|
|
7
7
|
"vitest/require-local-test-context-for-concurrent-snapshots": ["error"],
|
|
8
8
|
"vitest/warn-todo": ["error"],
|
|
9
|
-
"vitest/consistent-each-for": ["error"],
|
|
10
9
|
"vitest/hoisted-apis-on-top": ["error"],
|
|
11
10
|
"vitest/require-mock-type-parameters": ["error"],
|
|
12
11
|
"vitest/require-awaited-expect-poll": ["error"],
|
|
@@ -13,6 +13,23 @@
|
|
|
13
13
|
"vue/no-deprecated-delete-set": ["error"],
|
|
14
14
|
"vue/no-deprecated-events-api": ["error"],
|
|
15
15
|
"vue/no-deprecated-data-object-declaration": ["error"],
|
|
16
|
-
"vue/no-deprecated-vue-config-keycodes": ["error"]
|
|
16
|
+
"vue/no-deprecated-vue-config-keycodes": ["error"],
|
|
17
|
+
"vue/no-expose-after-await": ["error"],
|
|
18
|
+
"vue/no-computed-properties-in-data": ["error"],
|
|
19
|
+
"vue/require-render-return": ["error"],
|
|
20
|
+
"vue/no-deprecated-props-default-this": ["error"],
|
|
21
|
+
"vue/return-in-emits-validator": ["error"],
|
|
22
|
+
"vue/no-watch-after-await": ["off"],
|
|
23
|
+
"vue/valid-next-tick": ["error"],
|
|
24
|
+
"vue/no-shared-component-data": ["error"],
|
|
25
|
+
"vue/valid-define-options": ["error"],
|
|
26
|
+
"vue/require-slots-as-functions": ["error"],
|
|
27
|
+
"vue/no-reserved-component-names": ["error"],
|
|
28
|
+
"vue/require-prop-type-constructor": ["error"],
|
|
29
|
+
"vue/no-reserved-props": ["error"],
|
|
30
|
+
"vue/no-reserved-keys": ["error"],
|
|
31
|
+
"vue/no-dupe-keys": ["error"],
|
|
32
|
+
"vue/no-side-effects-in-computed-properties": ["error"],
|
|
33
|
+
"vue/no-async-in-computed-properties": ["error"]
|
|
17
34
|
}
|
|
18
35
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"overrides": [
|
|
3
|
+
{
|
|
4
|
+
"files": ["app/components/**"],
|
|
5
|
+
"rules": {
|
|
6
|
+
"unicorn/filename-case": ["error", { "case": "pascalCase" }]
|
|
7
|
+
}
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"files": ["app/composables/**", "app/plugins/**", "app/types/**", "app/utils/**"],
|
|
11
|
+
"rules": {
|
|
12
|
+
"unicorn/filename-case": ["error", { "case": "camelCase" }]
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"files": ["app/middleware/**", "app/pages/**"],
|
|
17
|
+
"rules": {
|
|
18
|
+
"unicorn/filename-case": ["error", { "case": "kebabCase" }]
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
}
|
|
@@ -45,6 +45,8 @@
|
|
|
45
45
|
"unicorn/prefer-top-level-await": ["error"],
|
|
46
46
|
"unicorn/prefer-type-error": ["error"],
|
|
47
47
|
"unicorn/require-number-to-fixed-digits-argument": ["error"],
|
|
48
|
-
"unicorn/prefer-import-meta-properties": ["error"]
|
|
48
|
+
"unicorn/prefer-import-meta-properties": ["error"],
|
|
49
|
+
"unicorn/prefer-single-call": ["error"],
|
|
50
|
+
"unicorn/prefer-number-coercion": ["error"]
|
|
49
51
|
}
|
|
50
52
|
}
|
package/rules/style/eslint.json
CHANGED
package/rules/style/jsdoc.json
CHANGED
package/rules/style/node.json
CHANGED
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"typescript/prefer-find": ["error"],
|
|
24
24
|
"typescript/dot-notation": ["error"],
|
|
25
25
|
"typescript/consistent-type-exports": ["error"],
|
|
26
|
-
"typescript/no-unnecessary-qualifier": ["error"]
|
|
26
|
+
"typescript/no-unnecessary-qualifier": ["error"],
|
|
27
|
+
"typescript/method-signature-style": ["error"]
|
|
27
28
|
}
|
|
28
29
|
}
|
package/rules/style/unicorn.json
CHANGED
|
@@ -45,6 +45,8 @@
|
|
|
45
45
|
"unicorn/relative-url-style": ["error"],
|
|
46
46
|
"unicorn/custom-error-definition": ["error"],
|
|
47
47
|
"unicorn/switch-case-break-position": ["error"],
|
|
48
|
-
"unicorn/consistent-template-literal-escape": ["error"]
|
|
48
|
+
"unicorn/consistent-template-literal-escape": ["error"],
|
|
49
|
+
"unicorn/prefer-export-from": ["error"],
|
|
50
|
+
"unicorn/max-nested-calls": ["error"]
|
|
49
51
|
}
|
|
50
52
|
}
|
package/rules/style/vitest.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"rules": {
|
|
3
|
+
"vitest/consistent-each-for": ["error"],
|
|
3
4
|
"vitest/no-test-prefixes": ["error"],
|
|
4
5
|
"vitest/no-test-return-statement": ["error"],
|
|
5
6
|
"vitest/padding-around-after-all-blocks": ["error"],
|
|
@@ -18,12 +19,12 @@
|
|
|
18
19
|
"vitest/prefer-to-be": ["error"],
|
|
19
20
|
"vitest/prefer-to-have-been-called-times": ["error"],
|
|
20
21
|
"vitest/prefer-to-have-length": ["error"],
|
|
21
|
-
"vitest/require-hook": ["
|
|
22
|
+
"vitest/require-hook": ["off"],
|
|
22
23
|
"vitest/consistent-test-filename": ["off"],
|
|
23
24
|
"vitest/consistent-vitest-vi": ["off"],
|
|
24
25
|
"vitest/no-import-node-test": ["error"],
|
|
25
26
|
"vitest/prefer-called-times": ["error"],
|
|
26
|
-
"vitest/prefer-to-be-falsy": ["
|
|
27
|
+
"vitest/prefer-to-be-falsy": ["off"],
|
|
27
28
|
"vitest/prefer-to-be-object": ["error"],
|
|
28
29
|
"vitest/prefer-to-be-truthy": ["off"],
|
|
29
30
|
"vitest/prefer-called-once": ["off"],
|
package/rules/style/vue.json
CHANGED
|
@@ -8,6 +8,12 @@
|
|
|
8
8
|
"destructure": "never"
|
|
9
9
|
}
|
|
10
10
|
],
|
|
11
|
-
"vue/require-typed-ref": ["error"]
|
|
11
|
+
"vue/require-typed-ref": ["error"],
|
|
12
|
+
"vue/component-definition-name-casing": ["error"],
|
|
13
|
+
"vue/next-tick-style": ["error", "promise"],
|
|
14
|
+
"vue/require-direct-export": ["error"],
|
|
15
|
+
"vue/require-prop-types": ["error"],
|
|
16
|
+
"vue/prop-name-casing": ["error", "camelCase"],
|
|
17
|
+
"vue/require-default-prop": ["error"]
|
|
12
18
|
}
|
|
13
19
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
"rules": {
|
|
3
3
|
"unicorn/consistent-function-scoping": ["error"],
|
|
4
4
|
"unicorn/no-accessor-recursion": ["error"],
|
|
5
|
+
"unicorn/no-array-fill-with-reference-type": ["error"],
|
|
5
6
|
"unicorn/no-array-reverse": ["error"],
|
|
6
7
|
"unicorn/no-array-sort": ["error"],
|
|
7
8
|
"unicorn/no-instanceof-builtins": ["error"],
|