@resolid/config 3.2.3 → 3.3.1
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/package.json +16 -16
- package/src/eslint.browser.js +4 -3
- package/src/eslint.javascript.js +5 -3
- package/src/eslint.node.js +4 -3
- package/src/eslint.react.js +6 -5
- package/src/eslint.typescript.js +4 -2
- package/src/prettier.js +1 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@resolid/config",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"description": "Eslint and Prettier config",
|
|
@@ -25,32 +25,32 @@
|
|
|
25
25
|
"./tsconfig/*": "./tsconfig/*.json"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@eslint/js": "^9.
|
|
28
|
+
"@eslint/js": "^9.21.0",
|
|
29
29
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
30
|
-
"eslint-plugin-n": "^17.
|
|
30
|
+
"eslint-plugin-n": "^17.16.1",
|
|
31
31
|
"eslint-plugin-react": "^7.37.4",
|
|
32
32
|
"eslint-plugin-react-compiler": "beta",
|
|
33
|
-
"eslint-plugin-react-hooks": "^5.
|
|
33
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
34
34
|
"eslint-plugin-react-refresh": "^0.4.19",
|
|
35
|
-
"globals": "^
|
|
35
|
+
"globals": "^16.0.0",
|
|
36
36
|
"prettier-plugin-organize-imports": "^4.1.0",
|
|
37
|
-
"typescript-eslint": "^8.
|
|
37
|
+
"typescript-eslint": "^8.26.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@arethetypeswrong/cli": "^0.17.
|
|
41
|
-
"@changesets/changelog-github": "^0.5.
|
|
42
|
-
"@changesets/cli": "^2.
|
|
40
|
+
"@arethetypeswrong/cli": "^0.17.4",
|
|
41
|
+
"@changesets/changelog-github": "^0.5.1",
|
|
42
|
+
"@changesets/cli": "^2.28.1",
|
|
43
43
|
"@commitlint/cli": "^19.7.1",
|
|
44
44
|
"@commitlint/config-conventional": "^19.7.1",
|
|
45
|
-
"eslint": "^9.
|
|
46
|
-
"lefthook": "^1.
|
|
47
|
-
"prettier": "^3.5.
|
|
48
|
-
"typescript": "^5.
|
|
45
|
+
"eslint": "^9.21.0",
|
|
46
|
+
"lefthook": "^1.11.2",
|
|
47
|
+
"prettier": "^3.5.3",
|
|
48
|
+
"typescript": "^5.8.2"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"eslint": "^9.
|
|
52
|
-
"prettier": "^3.5.
|
|
53
|
-
"typescript": "^5.
|
|
51
|
+
"eslint": "^9.21.0",
|
|
52
|
+
"prettier": "^3.5.3",
|
|
53
|
+
"typescript": "^5.8.2"
|
|
54
54
|
},
|
|
55
55
|
"peerDependenciesMeta": {
|
|
56
56
|
"typescript": {
|
package/src/eslint.browser.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import globals from "globals";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export default [
|
|
3
|
+
/** @type {import('eslint').Linter.Config[]} */
|
|
4
|
+
const config = [
|
|
6
5
|
{
|
|
7
6
|
name: "resolid/browser",
|
|
8
7
|
languageOptions: {
|
|
@@ -12,3 +11,5 @@ export default [
|
|
|
12
11
|
},
|
|
13
12
|
},
|
|
14
13
|
];
|
|
14
|
+
|
|
15
|
+
export default config;
|
package/src/eslint.javascript.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import js from "@eslint/js";
|
|
2
2
|
import globals from "globals";
|
|
3
3
|
|
|
4
|
-
/** @type {import('eslint').Linter.
|
|
5
|
-
|
|
4
|
+
/** @type {import('eslint').Linter.Config[]} */
|
|
5
|
+
const config = [
|
|
6
6
|
{
|
|
7
7
|
name: "resolid/ignores",
|
|
8
8
|
ignores: [
|
|
@@ -24,7 +24,7 @@ export default [
|
|
|
24
24
|
"**/.resolid",
|
|
25
25
|
"**/.vercel",
|
|
26
26
|
"**/.yarn",
|
|
27
|
-
|
|
27
|
+
|
|
28
28
|
"**/.vite-inspect",
|
|
29
29
|
"**/*.min.*",
|
|
30
30
|
"**/CHANGELOG*.md",
|
|
@@ -52,3 +52,5 @@ export default [
|
|
|
52
52
|
},
|
|
53
53
|
},
|
|
54
54
|
];
|
|
55
|
+
|
|
56
|
+
export default config;
|
package/src/eslint.node.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import n from "eslint-plugin-n";
|
|
2
2
|
import globals from "globals";
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export default [
|
|
4
|
+
/** @type {import('eslint').Linter.Config[]} */
|
|
5
|
+
const config = [
|
|
7
6
|
{
|
|
8
7
|
name: "resolid/node",
|
|
9
8
|
plugins: { n },
|
|
@@ -24,3 +23,5 @@ export default [
|
|
|
24
23
|
},
|
|
25
24
|
},
|
|
26
25
|
];
|
|
26
|
+
|
|
27
|
+
export default config;
|
package/src/eslint.react.js
CHANGED
|
@@ -4,9 +4,8 @@ import reactCompiler from "eslint-plugin-react-compiler";
|
|
|
4
4
|
import reactHooks from "eslint-plugin-react-hooks";
|
|
5
5
|
import reactRefresh from "eslint-plugin-react-refresh";
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export default [
|
|
7
|
+
/** @type {import('eslint').Linter.Config[]} */
|
|
8
|
+
const config = [
|
|
10
9
|
{
|
|
11
10
|
name: "resolid/react",
|
|
12
11
|
files: ["**/*.jsx", "**/*.tsx"],
|
|
@@ -61,11 +60,11 @@ export default [
|
|
|
61
60
|
"react-compiler": reactCompiler,
|
|
62
61
|
},
|
|
63
62
|
rules: {
|
|
64
|
-
|
|
63
|
+
"react-hooks/rules-of-hooks": "error",
|
|
65
64
|
"react-hooks/exhaustive-deps": [
|
|
66
65
|
"warn",
|
|
67
66
|
{
|
|
68
|
-
additionalHooks: "(useIsomorphicEffect)",
|
|
67
|
+
additionalHooks: "(useIsomorphicEffect|useEffectEvent)",
|
|
69
68
|
},
|
|
70
69
|
],
|
|
71
70
|
"react-compiler/react-compiler": "warn",
|
|
@@ -77,3 +76,5 @@ export default [
|
|
|
77
76
|
...jsxA11y.flatConfigs.recommended,
|
|
78
77
|
},
|
|
79
78
|
];
|
|
79
|
+
|
|
80
|
+
export default config;
|
package/src/eslint.typescript.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import typescript from "typescript-eslint";
|
|
2
2
|
import javascript from "./eslint.javascript.js";
|
|
3
3
|
|
|
4
|
-
/** @type {import('eslint').Linter.
|
|
5
|
-
|
|
4
|
+
/** @type {import('eslint').Linter.Config[]} */
|
|
5
|
+
const config = typescript.config(javascript, typescript.configs.recommended, {
|
|
6
6
|
name: "resolid/typescript",
|
|
7
7
|
files: ["**/*.ts", "**/*.tsx"],
|
|
8
8
|
languageOptions: {
|
|
@@ -19,3 +19,5 @@ export default typescript.config(javascript, typescript.configs.recommended, {
|
|
|
19
19
|
"@typescript-eslint/consistent-type-imports": "error",
|
|
20
20
|
},
|
|
21
21
|
});
|
|
22
|
+
|
|
23
|
+
export default config;
|