@dethdkn/ox-config 1.0.5 → 1.0.7
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 +10 -0
- package/package.json +23 -23
- package/rules/correctness/eslint.json +1 -0
- package/rules/correctness/vitest.json +2 -1
- package/rules/correctness/vue.json +2 -0
- package/rules/nursery/eslint.json +0 -1
- package/rules/nursery/oxc.json +1 -2
- package/rules/pedantic/eslint.json +4 -0
- package/rules/pedantic/typescript.json +1 -0
- package/rules/pedantic/unicorn.json +1 -0
- package/rules/perf/oxc.json +2 -1
- package/rules/restriction/eslint.json +2 -0
- package/rules/style/eslint.json +3 -0
- package/rules/style/node.json +1 -0
- package/rules/style/unicorn.json +3 -0
- package/rules/style/vitest.json +3 -0
- package/rules/suspicious/oxc.json +2 -1
package/.oxfmtrc.json
CHANGED
|
@@ -19,6 +19,16 @@
|
|
|
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
|
+
"insertFinalNewline": true,
|
|
22
32
|
"jsxSingleQuote": false,
|
|
23
33
|
"objectWrap": "preserve",
|
|
24
34
|
"printWidth": 100,
|
package/package.json
CHANGED
|
@@ -1,37 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dethdkn/ox-config",
|
|
3
|
-
"
|
|
4
|
-
"version": "1.0.5",
|
|
5
|
-
"packageManager": "bun@1.3.3",
|
|
3
|
+
"version": "1.0.7",
|
|
6
4
|
"description": "⚓ My Opinionated OX Config",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"oxfmt",
|
|
7
|
+
"oxfmt-config",
|
|
8
|
+
"oxlint",
|
|
9
|
+
"oxlint-config"
|
|
10
|
+
],
|
|
11
|
+
"homepage": "https://github.com/dethdkn/ox-config",
|
|
12
|
+
"bugs": "https://github.com/dethdkn/ox-config/issues",
|
|
13
|
+
"license": "MIT",
|
|
7
14
|
"author": {
|
|
8
15
|
"name": "Gabriel 'DethDKN' Rosa",
|
|
9
16
|
"email": "gabriel@rosa.dev.br",
|
|
10
17
|
"url": "https://rosa.dev.br"
|
|
11
18
|
},
|
|
12
|
-
"license": "MIT",
|
|
13
|
-
"funding": "https://github.com/sponsors/dethdkn",
|
|
14
|
-
"homepage": "https://github.com/dethdkn/ox-config",
|
|
15
19
|
"repository": {
|
|
16
20
|
"type": "git",
|
|
17
21
|
"url": "git+https://github.com/dethdkn/ox-config.git"
|
|
18
22
|
},
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"oxlint-config"
|
|
23
|
+
"funding": "https://github.com/sponsors/dethdkn",
|
|
24
|
+
"files": [
|
|
25
|
+
".oxfmtrc.json",
|
|
26
|
+
".oxlintrc.json",
|
|
27
|
+
"rules"
|
|
25
28
|
],
|
|
29
|
+
"type": "module",
|
|
26
30
|
"exports": {
|
|
27
31
|
"./.oxfmtrc.json": "./.oxfmtrc.json",
|
|
28
32
|
"./.oxlintrc.json": "./.oxlintrc.json"
|
|
29
33
|
},
|
|
30
|
-
"files": [
|
|
31
|
-
"rules",
|
|
32
|
-
".oxfmtrc.json",
|
|
33
|
-
".oxlintrc.json"
|
|
34
|
-
],
|
|
35
34
|
"scripts": {
|
|
36
35
|
"fmt": "oxfmt --check",
|
|
37
36
|
"fmt:fix": "oxfmt",
|
|
@@ -39,14 +38,15 @@
|
|
|
39
38
|
"lint:fix": "oxlint --type-aware --fix",
|
|
40
39
|
"release": "bun fmt && bun lint && bumpp && sudo npm publish"
|
|
41
40
|
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"oxfmt": "^0.23.0",
|
|
43
|
+
"oxlint": "^1.38.0",
|
|
44
|
+
"oxlint-tsgolint": "^0.10.1"
|
|
45
|
+
},
|
|
42
46
|
"devDependencies": {
|
|
43
47
|
"bumpp": "^10.3.2",
|
|
44
48
|
"typescript": "^5.9.3",
|
|
45
|
-
"vue": "^3.5.
|
|
49
|
+
"vue": "^3.5.26"
|
|
46
50
|
},
|
|
47
|
-
"
|
|
48
|
-
"oxfmt": "^0.17.0",
|
|
49
|
-
"oxlint": "^1.32.0",
|
|
50
|
-
"oxlint-tsgolint": "^0.8.5"
|
|
51
|
-
}
|
|
51
|
+
"packageManager": "bun@1.3.3"
|
|
52
52
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
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
8
|
"vue/valid-define-props": ["error"]
|
package/rules/nursery/oxc.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"rules": {
|
|
3
|
+
"eslint/accessor-pairs": ["off"],
|
|
3
4
|
"eslint/array-callback-return": ["error"],
|
|
4
5
|
"eslint/eqeqeq": ["error"],
|
|
5
6
|
"eslint/max-classes-per-file": ["error"],
|
|
@@ -12,11 +13,14 @@
|
|
|
12
13
|
"eslint/no-constructor-return": ["error"],
|
|
13
14
|
"eslint/no-else-return": ["error"],
|
|
14
15
|
"eslint/no-fallthrough": ["error"],
|
|
16
|
+
"eslint/no-inline-comments": ["error"],
|
|
15
17
|
"eslint/no-inner-declarations": ["error"],
|
|
16
18
|
"eslint/no-lonely-if": ["error"],
|
|
19
|
+
"eslint/no-loop-func": ["error"],
|
|
17
20
|
"eslint/no-negated-condition": ["off"],
|
|
18
21
|
"eslint/no-new-wrappers": ["error"],
|
|
19
22
|
"eslint/no-object-constructor": ["error"],
|
|
23
|
+
"eslint/no-promise-executor-return": ["error"],
|
|
20
24
|
"eslint/no-prototype-builtins": ["error"],
|
|
21
25
|
"eslint/no-redeclare": ["error"],
|
|
22
26
|
"eslint/no-self-compare": ["error"],
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"typescript/only-throw-error": ["error"],
|
|
21
21
|
"typescript/prefer-enum-initializers": ["error"],
|
|
22
22
|
"typescript/prefer-includes": ["error"],
|
|
23
|
+
"typescript/prefer-nullish-coalescing": ["error"],
|
|
23
24
|
"typescript/prefer-promise-reject-errors": ["error"],
|
|
24
25
|
"typescript/prefer-ts-expect-error": ["error"],
|
|
25
26
|
"typescript/related-getter-setter-pairs": ["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/perf/oxc.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"rules": {
|
|
3
3
|
"eslint/class-methods-use-this": ["error"],
|
|
4
|
+
"eslint/complexity": ["off"],
|
|
4
5
|
"eslint/default-case": ["error"],
|
|
5
6
|
"eslint/no-alert": ["error"],
|
|
6
7
|
"eslint/no-bitwise": ["error"],
|
|
@@ -46,6 +47,7 @@
|
|
|
46
47
|
}
|
|
47
48
|
]
|
|
48
49
|
],
|
|
50
|
+
"eslint/no-sequences": ["error"],
|
|
49
51
|
"eslint/no-undefined": ["off"],
|
|
50
52
|
"eslint/no-var": ["error"],
|
|
51
53
|
"eslint/no-void": ["off"],
|
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,10 +18,12 @@
|
|
|
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 }],
|
|
23
25
|
"eslint/no-extra-label": ["error"],
|
|
26
|
+
"eslint/no-implicit-coercion": ["error"],
|
|
24
27
|
"eslint/no-label-var": ["error"],
|
|
25
28
|
"eslint/no-labels": ["error"],
|
|
26
29
|
"eslint/no-lone-blocks": ["error"],
|
package/rules/style/node.json
CHANGED
package/rules/style/unicorn.json
CHANGED
|
@@ -20,9 +20,11 @@
|
|
|
20
20
|
"unicorn/prefer-bigint-literals": ["error"],
|
|
21
21
|
"unicorn/prefer-class-fields": ["error"],
|
|
22
22
|
"unicorn/prefer-classlist-toggle": ["error"],
|
|
23
|
+
"unicorn/prefer-default-parameters": ["error"],
|
|
23
24
|
"unicorn/prefer-dom-node-text-content": ["error"],
|
|
24
25
|
"unicorn/prefer-global-this": ["error"],
|
|
25
26
|
"unicorn/prefer-includes": ["error"],
|
|
27
|
+
"unicorn/prefer-keyboard-event-key": ["error"],
|
|
26
28
|
"unicorn/prefer-logical-operator-over-ternary": ["error"],
|
|
27
29
|
"unicorn/prefer-modern-dom-apis": ["error"],
|
|
28
30
|
"unicorn/prefer-negative-index": ["error"],
|
|
@@ -35,6 +37,7 @@
|
|
|
35
37
|
"unicorn/prefer-string-trim-start-end": ["error"],
|
|
36
38
|
"unicorn/prefer-structured-clone": ["error"],
|
|
37
39
|
"unicorn/require-array-join-separator": ["error"],
|
|
40
|
+
"unicorn/require-module-attributes": ["error"],
|
|
38
41
|
"unicorn/switch-case-braces": ["error"],
|
|
39
42
|
"unicorn/text-encoding-identifier-case": ["error"],
|
|
40
43
|
"unicorn/throw-new-error": ["error"]
|
package/rules/style/vitest.json
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
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
9
|
"vitest/prefer-to-be-truthy": ["error"]
|