@dethdkn/ox-config 1.0.6 → 1.0.8
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/.oxfmtrc.json +14 -1
- package/.oxlintrc.json +1 -0
- package/LICENSE +1 -1
- package/README.md +6 -6
- package/package.json +17 -17
- package/rules/correctness/vitest.json +4 -1
- package/rules/correctness/vue.json +5 -1
- package/rules/nursery/typescript.json +5 -0
- package/rules/pedantic/eslint.json +1 -0
- package/rules/pedantic/unicorn.json +1 -0
- package/rules/restriction/eslint.json +1 -0
- package/rules/style/eslint.json +2 -0
- package/rules/style/node.json +1 -0
- package/rules/style/unicorn.json +1 -0
- package/rules/style/vitest.json +7 -1
package/.oxfmtrc.json
CHANGED
|
@@ -19,14 +19,27 @@
|
|
|
19
19
|
],
|
|
20
20
|
"sortSideEffects": true
|
|
21
21
|
},
|
|
22
|
+
"experimentalSortPackageJson": true,
|
|
23
|
+
"experimentalTailwindcss": {
|
|
24
|
+
"attributes": ["class", "className"],
|
|
25
|
+
"config": "./tailwind.config.js",
|
|
26
|
+
"functions": [],
|
|
27
|
+
"preserveDuplicates": false,
|
|
28
|
+
"preserveWhitespace": false,
|
|
29
|
+
"stylesheet": "./app/assets/main.css"
|
|
30
|
+
},
|
|
31
|
+
"htmlWhitespaceSensitivity": "css",
|
|
32
|
+
"insertFinalNewline": true,
|
|
22
33
|
"jsxSingleQuote": false,
|
|
23
34
|
"objectWrap": "preserve",
|
|
24
35
|
"printWidth": 100,
|
|
36
|
+
"proseWrap": "preserve",
|
|
25
37
|
"quoteProps": "as-needed",
|
|
26
38
|
"semi": false,
|
|
27
39
|
"singleAttributePerLine": false,
|
|
28
40
|
"singleQuote": true,
|
|
29
41
|
"tabWidth": 2,
|
|
30
42
|
"trailingComma": "all",
|
|
31
|
-
"useTabs": false
|
|
43
|
+
"useTabs": false,
|
|
44
|
+
"vueIndentScriptAndStyle": true
|
|
32
45
|
}
|
package/.oxlintrc.json
CHANGED
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2026 Gabriel 'DethDKN' Rosa <https://github.com/dethdkn>
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
|
@@ -53,9 +53,6 @@
|
|
|
53
53
|
// Use OXC as the default code formatter in VSCode
|
|
54
54
|
"editor.defaultFormatter": "oxc.oxc-vscode",
|
|
55
55
|
|
|
56
|
-
// Enable experimental features for the OXC formatter (fmt)
|
|
57
|
-
"oxc.fmt.experimental": true,
|
|
58
|
-
|
|
59
56
|
// Automatically format files whenever you save them
|
|
60
57
|
"editor.formatOnSave": true,
|
|
61
58
|
|
|
@@ -64,12 +61,15 @@
|
|
|
64
61
|
"source.fixAll.oxc": "explicit"
|
|
65
62
|
},
|
|
66
63
|
|
|
67
|
-
//
|
|
68
|
-
"oxc.
|
|
64
|
+
// Enable type-aware linting
|
|
65
|
+
"oxc.typeAware": true,
|
|
66
|
+
|
|
67
|
+
// Run OXC linter automatically on type
|
|
68
|
+
"oxc.lint.run": "onType"
|
|
69
69
|
}
|
|
70
70
|
```
|
|
71
71
|
|
|
72
72
|
## 📝 License
|
|
73
73
|
|
|
74
|
-
Copyright ©
|
|
74
|
+
Copyright © 2026 [Gabriel 'DethDKN' Rosa](https://github.com/dethdkn)\
|
|
75
75
|
This project is under [MIT license](https://github.com/dethdkn/ox-config/blob/main/LICENSE)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dethdkn/ox-config",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "⚓ My Opinionated OX Config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"oxfmt",
|
|
@@ -10,27 +10,27 @@
|
|
|
10
10
|
],
|
|
11
11
|
"homepage": "https://github.com/dethdkn/ox-config",
|
|
12
12
|
"bugs": "https://github.com/dethdkn/ox-config/issues",
|
|
13
|
-
"
|
|
14
|
-
"type": "git",
|
|
15
|
-
"url": "git+https://github.com/dethdkn/ox-config.git"
|
|
16
|
-
},
|
|
13
|
+
"license": "MIT",
|
|
17
14
|
"author": {
|
|
18
15
|
"name": "Gabriel 'DethDKN' Rosa",
|
|
19
16
|
"email": "gabriel@rosa.dev.br",
|
|
20
17
|
"url": "https://rosa.dev.br"
|
|
21
18
|
},
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"exports": {
|
|
26
|
-
"./.oxfmtrc.json": "./.oxfmtrc.json",
|
|
27
|
-
"./.oxlintrc.json": "./.oxlintrc.json"
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "git+https://github.com/dethdkn/ox-config.git"
|
|
28
22
|
},
|
|
23
|
+
"funding": "https://github.com/sponsors/dethdkn",
|
|
29
24
|
"files": [
|
|
30
25
|
".oxfmtrc.json",
|
|
31
26
|
".oxlintrc.json",
|
|
32
27
|
"rules"
|
|
33
28
|
],
|
|
29
|
+
"type": "module",
|
|
30
|
+
"exports": {
|
|
31
|
+
"./.oxfmtrc.json": "./.oxfmtrc.json",
|
|
32
|
+
"./.oxlintrc.json": "./.oxlintrc.json"
|
|
33
|
+
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"fmt": "oxfmt --check",
|
|
36
36
|
"fmt:fix": "oxfmt",
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
"release": "bun fmt && bun lint && bumpp && sudo npm publish"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"oxfmt": "^0.
|
|
43
|
-
"oxlint": "^1.
|
|
44
|
-
"oxlint-tsgolint": "^0.
|
|
42
|
+
"oxfmt": "^0.26.0",
|
|
43
|
+
"oxlint": "^1.41.0",
|
|
44
|
+
"oxlint-tsgolint": "^0.11.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"bumpp": "^10.
|
|
47
|
+
"bumpp": "^10.4.0",
|
|
48
48
|
"typescript": "^5.9.3",
|
|
49
|
-
"vue": "^3.5.
|
|
49
|
+
"vue": "^3.5.27"
|
|
50
50
|
},
|
|
51
|
-
"packageManager": "bun@1.3.
|
|
51
|
+
"packageManager": "bun@1.3.6"
|
|
52
52
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"rules": {
|
|
3
3
|
"vitest/no-conditional-tests": ["error"],
|
|
4
|
-
"vitest/require-local-test-context-for-concurrent-snapshots": ["error"]
|
|
4
|
+
"vitest/require-local-test-context-for-concurrent-snapshots": ["error"],
|
|
5
|
+
"vitest/warn-todo": ["error"],
|
|
6
|
+
"vitest/consistent-each-for": ["error"],
|
|
7
|
+
"vitest/hoisted-apis-on-top": ["error"]
|
|
5
8
|
}
|
|
6
9
|
}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"rules": {
|
|
3
|
+
"vue/no-deprecated-destroyed-lifecycle": ["error"],
|
|
3
4
|
"vue/no-export-in-script-setup": ["error"],
|
|
5
|
+
"vue/no-this-in-before-route-enter": ["error"],
|
|
4
6
|
"vue/prefer-import-from-vue": ["error"],
|
|
5
7
|
"vue/valid-define-emits": ["error"],
|
|
6
|
-
"vue/valid-define-props": ["error"]
|
|
8
|
+
"vue/valid-define-props": ["error"],
|
|
9
|
+
"vue/no-lifecycle-after-await": ["error"],
|
|
10
|
+
"vue/no-arrow-functions-in-watch": ["error"]
|
|
7
11
|
}
|
|
8
12
|
}
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"eslint/no-constructor-return": ["error"],
|
|
14
14
|
"eslint/no-else-return": ["error"],
|
|
15
15
|
"eslint/no-fallthrough": ["error"],
|
|
16
|
+
"eslint/no-inline-comments": ["error"],
|
|
16
17
|
"eslint/no-inner-declarations": ["error"],
|
|
17
18
|
"eslint/no-lonely-if": ["error"],
|
|
18
19
|
"eslint/no-loop-func": ["error"],
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
"unicorn/new-for-builtins": ["error"],
|
|
8
8
|
"unicorn/no-array-callback-reference": ["error"],
|
|
9
9
|
"unicorn/no-hex-escape": ["error"],
|
|
10
|
+
"unicorn/no-immediate-mutation": ["error"],
|
|
10
11
|
"unicorn/no-instanceof-array": ["error"],
|
|
11
12
|
"unicorn/no-lonely-if": ["error"],
|
|
12
13
|
"unicorn/no-negation-in-equality-check": ["error"],
|
package/rules/style/eslint.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"rules": {
|
|
3
3
|
"eslint/arrow-body-style": ["error", "as-needed"],
|
|
4
|
+
"eslint/capitalized-comments": ["error"],
|
|
4
5
|
"eslint/curly": ["error", "multi-line"],
|
|
5
6
|
"eslint/default-case-last": ["error"],
|
|
6
7
|
"eslint/default-param-last": ["error"],
|
|
@@ -17,6 +18,7 @@
|
|
|
17
18
|
"eslint/id-length": ["error", { "exceptions": ["_", "i", "j", "k", "l", "t"] }],
|
|
18
19
|
"eslint/init-declarations": ["off"],
|
|
19
20
|
"eslint/max-params": ["off"],
|
|
21
|
+
"eslint/max-statements": ["off"],
|
|
20
22
|
"eslint/new-cap": ["error"],
|
|
21
23
|
"eslint/no-continue": ["error"],
|
|
22
24
|
"eslint/no-duplicate-imports": ["error", { "allowSeparateTypeImports": true }],
|
package/rules/style/node.json
CHANGED
package/rules/style/unicorn.json
CHANGED
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"unicorn/prefer-string-trim-start-end": ["error"],
|
|
38
38
|
"unicorn/prefer-structured-clone": ["error"],
|
|
39
39
|
"unicorn/require-array-join-separator": ["error"],
|
|
40
|
+
"unicorn/require-module-attributes": ["error"],
|
|
40
41
|
"unicorn/switch-case-braces": ["error"],
|
|
41
42
|
"unicorn/text-encoding-identifier-case": ["error"],
|
|
42
43
|
"unicorn/throw-new-error": ["error"]
|
package/rules/style/vitest.json
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"rules": {
|
|
3
|
+
"vitest/consistent-test-filename": ["off"],
|
|
4
|
+
"vitest/consistent-vitest-vi": ["off"],
|
|
3
5
|
"vitest/no-import-node-test": ["error"],
|
|
6
|
+
"vitest/prefer-called-times": ["error"],
|
|
4
7
|
"vitest/prefer-to-be-falsy": ["error"],
|
|
5
8
|
"vitest/prefer-to-be-object": ["error"],
|
|
6
|
-
"vitest/prefer-to-be-truthy": ["error"]
|
|
9
|
+
"vitest/prefer-to-be-truthy": ["error"],
|
|
10
|
+
"vitest/prefer-called-once": ["off"],
|
|
11
|
+
"vitest/prefer-describe-function-title": ["error"],
|
|
12
|
+
"vitest/no-unneeded-async-expect-function": ["error"]
|
|
7
13
|
}
|
|
8
14
|
}
|