@resolid/config 5.1.0 → 5.2.0
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/oxlint/javascript.js +10 -4
- package/oxlint/react.js +1 -1
- package/oxlint/typescript.js +3 -2
- package/package.json +15 -9
package/oxlint/javascript.js
CHANGED
|
@@ -19,8 +19,11 @@ export default defineConfig({
|
|
|
19
19
|
"**/.vercel",
|
|
20
20
|
"**/.vite-inspect",
|
|
21
21
|
],
|
|
22
|
-
plugins: ["eslint", "oxc", "
|
|
22
|
+
plugins: ["eslint", "import", "oxc", "promise", "unicorn"],
|
|
23
23
|
rules: {
|
|
24
|
+
curly: "warn",
|
|
25
|
+
"guard-for-in": "warn",
|
|
26
|
+
|
|
24
27
|
"no-case-declarations": "error",
|
|
25
28
|
"no-empty": "error",
|
|
26
29
|
"no-fallthrough": "error",
|
|
@@ -29,22 +32,25 @@ export default defineConfig({
|
|
|
29
32
|
"no-unexpected-multiline": "error",
|
|
30
33
|
"no-var": "error",
|
|
31
34
|
"no-array-constructor": "error",
|
|
35
|
+
"no-useless-call": "error",
|
|
36
|
+
"no-await-in-loop": "error",
|
|
37
|
+
|
|
32
38
|
"prefer-const": "error",
|
|
33
39
|
"prefer-rest-params": "error",
|
|
34
40
|
"prefer-spread": "error",
|
|
35
|
-
|
|
36
41
|
"prefer-template": "warn",
|
|
37
42
|
"prefer-destructuring": "warn",
|
|
38
43
|
"prefer-object-spread": "warn",
|
|
39
44
|
"prefer-exponentiation-operator": "warn",
|
|
40
45
|
"prefer-numeric-literals": "warn",
|
|
41
|
-
curly: "warn",
|
|
42
|
-
"guard-for-in": "warn",
|
|
43
46
|
|
|
44
47
|
"import/export": "error",
|
|
45
48
|
"import/named": "error",
|
|
46
49
|
"import/no-named-as-default": "warn",
|
|
47
50
|
"import/no-named-as-default-member": "warn",
|
|
48
51
|
"import/no-duplicates": "warn",
|
|
52
|
+
|
|
53
|
+
"oxc/no-accumulating-spread": "error",
|
|
54
|
+
"oxc/no-map-spread": "error",
|
|
49
55
|
},
|
|
50
56
|
});
|
package/oxlint/react.js
CHANGED
|
@@ -11,7 +11,7 @@ export default defineConfig({
|
|
|
11
11
|
specifier: "eslint-plugin-react-you-might-not-need-an-effect",
|
|
12
12
|
},
|
|
13
13
|
],
|
|
14
|
-
plugins: ["react", "jsx-a11y"],
|
|
14
|
+
plugins: ["react", "react-perf", "jsx-a11y"],
|
|
15
15
|
rules: {
|
|
16
16
|
"react/display-name": "error",
|
|
17
17
|
"react/jsx-key": "error",
|
package/oxlint/typescript.js
CHANGED
|
@@ -5,8 +5,10 @@ export default defineConfig({
|
|
|
5
5
|
extends: [javascriptConfig],
|
|
6
6
|
plugins: ["typescript"],
|
|
7
7
|
rules: {
|
|
8
|
+
"typescript/array-type": "warn",
|
|
8
9
|
"typescript/ban-ts-comment": "error",
|
|
9
10
|
"typescript/consistent-type-imports": "error",
|
|
11
|
+
|
|
10
12
|
"typescript/no-empty-object-type": "error",
|
|
11
13
|
"typescript/no-explicit-any": "error",
|
|
12
14
|
"typescript/no-import-type-side-effects": "error",
|
|
@@ -14,11 +16,10 @@ export default defineConfig({
|
|
|
14
16
|
"typescript/no-require-imports": "error",
|
|
15
17
|
"typescript/no-unnecessary-type-constraint": "error",
|
|
16
18
|
"typescript/no-unsafe-function-type": "error",
|
|
19
|
+
|
|
17
20
|
"typescript/prefer-for-of": "error",
|
|
18
21
|
"typescript/prefer-function-type": "error",
|
|
19
22
|
"typescript/prefer-nullish-coalescing": "error",
|
|
20
23
|
"typescript/prefer-optional-chain": "error",
|
|
21
|
-
|
|
22
|
-
"typescript/array-type": "warn",
|
|
23
24
|
},
|
|
24
25
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@resolid/config",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.0",
|
|
4
4
|
"description": "Oxlint and Typescript config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"oxfmt",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"author": "Huijie Wei",
|
|
14
14
|
"repository": {
|
|
15
15
|
"type": "git",
|
|
16
|
-
"url": "git+https://github.com/
|
|
16
|
+
"url": "git+https://github.com/resolid/config.git"
|
|
17
17
|
},
|
|
18
18
|
"files": [
|
|
19
19
|
"oxlint",
|
|
@@ -22,6 +22,10 @@
|
|
|
22
22
|
"type": "module",
|
|
23
23
|
"sideEffects": false,
|
|
24
24
|
"exports": {
|
|
25
|
+
"./oxfmt": {
|
|
26
|
+
"types": "./oxfmt/index.d.ts",
|
|
27
|
+
"import": "./oxfmt/index.js"
|
|
28
|
+
},
|
|
25
29
|
"./oxlint/*": {
|
|
26
30
|
"types": "./oxlint/*.d.ts",
|
|
27
31
|
"import": "./oxlint/*.js"
|
|
@@ -34,20 +38,21 @@
|
|
|
34
38
|
},
|
|
35
39
|
"devDependencies": {
|
|
36
40
|
"@changesets/cli": "^2.30.0",
|
|
37
|
-
"@commitlint/cli": "^20.
|
|
38
|
-
"@commitlint/config-conventional": "^20.
|
|
41
|
+
"@commitlint/cli": "^20.5.0",
|
|
42
|
+
"@commitlint/config-conventional": "^20.5.0",
|
|
39
43
|
"@svitejs/changesets-changelog-github-compact": "^1.2.0",
|
|
40
44
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
41
45
|
"eslint-plugin-react-you-might-not-need-an-effect": "^0.9.2",
|
|
42
|
-
"lefthook": "^2.1.
|
|
43
|
-
"oxfmt": "^0.
|
|
44
|
-
"oxlint": "^1.
|
|
46
|
+
"lefthook": "^2.1.4",
|
|
47
|
+
"oxfmt": "^0.41.0",
|
|
48
|
+
"oxlint": "^1.56.0",
|
|
45
49
|
"typescript": "^5.9.3"
|
|
46
50
|
},
|
|
47
51
|
"peerDependencies": {
|
|
48
52
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
49
53
|
"eslint-plugin-react-you-might-not-need-an-effect": "^0.9.2",
|
|
50
|
-
"
|
|
54
|
+
"oxfmt": "^0.41.0",
|
|
55
|
+
"oxlint": "^1.56.0",
|
|
51
56
|
"typescript": "^5.9.3"
|
|
52
57
|
},
|
|
53
58
|
"peerDependenciesMeta": {
|
|
@@ -60,6 +65,7 @@
|
|
|
60
65
|
},
|
|
61
66
|
"scripts": {
|
|
62
67
|
"format": "oxfmt",
|
|
63
|
-
"lint": "oxlint"
|
|
68
|
+
"lint": "oxlint",
|
|
69
|
+
"changeset": "changeset"
|
|
64
70
|
}
|
|
65
71
|
}
|