@resolid/config 3.3.0 → 3.3.2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resolid/config",
3
- "version": "3.3.0",
3
+ "version": "3.3.2",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "description": "Eslint and Prettier config",
@@ -27,14 +27,14 @@
27
27
  "dependencies": {
28
28
  "@eslint/js": "^9.21.0",
29
29
  "eslint-plugin-jsx-a11y": "^6.10.2",
30
- "eslint-plugin-n": "^17.15.1",
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.1.0",
33
+ "eslint-plugin-react-hooks": "^5.2.0",
34
34
  "eslint-plugin-react-refresh": "^0.4.19",
35
35
  "globals": "^16.0.0",
36
36
  "prettier-plugin-organize-imports": "^4.1.0",
37
- "typescript-eslint": "^8.25.0"
37
+ "typescript-eslint": "^8.26.0"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@arethetypeswrong/cli": "^0.17.4",
@@ -43,14 +43,14 @@
43
43
  "@commitlint/cli": "^19.7.1",
44
44
  "@commitlint/config-conventional": "^19.7.1",
45
45
  "eslint": "^9.21.0",
46
- "lefthook": "^1.11.1",
47
- "prettier": "^3.5.2",
48
- "typescript": "^5.7.3"
46
+ "lefthook": "^1.11.2",
47
+ "prettier": "^3.5.3",
48
+ "typescript": "^5.8.2"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "eslint": "^9.21.0",
52
- "prettier": "^3.5.2",
53
- "typescript": "^5.7.3"
52
+ "prettier": "^3.5.3",
53
+ "typescript": "^5.8.2"
54
54
  },
55
55
  "peerDependenciesMeta": {
56
56
  "typescript": {
@@ -1,8 +1,7 @@
1
1
  import globals from "globals";
2
2
 
3
- // noinspection JSUnusedGlobalSymbols
4
- /** @type {import('eslint').Linter.FlatConfig[]} */
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;
@@ -1,8 +1,8 @@
1
1
  import js from "@eslint/js";
2
2
  import globals from "globals";
3
3
 
4
- /** @type {import('eslint').Linter.FlatConfig[]} */
5
- export default [
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;
@@ -1,9 +1,8 @@
1
1
  import n from "eslint-plugin-n";
2
2
  import globals from "globals";
3
3
 
4
- // noinspection JSUnusedGlobalSymbols
5
- /** @type {import('eslint').Linter.FlatConfig[]} */
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;
@@ -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
- // noinspection JSUnusedGlobalSymbols,JSUnresolvedReference
8
- /** @type {import('eslint').Linter.FlatConfig[]} */
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,7 +60,7 @@ export default [
61
60
  "react-compiler": reactCompiler,
62
61
  },
63
62
  rules: {
64
- ...reactHooks.configs.recommended.rules,
63
+ "react-hooks/rules-of-hooks": "error",
65
64
  "react-hooks/exhaustive-deps": [
66
65
  "warn",
67
66
  {
@@ -77,3 +76,5 @@ export default [
77
76
  ...jsxA11y.flatConfigs.recommended,
78
77
  },
79
78
  ];
79
+
80
+ export default config;
@@ -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.FlatConfig[]} */
5
- export default typescript.config(javascript, typescript.configs.recommended, {
4
+ /** @type {import('@typescript-eslint/utils').FlatConfig.ConfigArray} */
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;
package/src/prettier.js CHANGED
@@ -1,6 +1,4 @@
1
- /**
2
- * @type {import("prettier").Config}
3
- */
1
+ /** @type {import('prettier').Config} */
4
2
  const config = {
5
3
  plugins: ["prettier-plugin-organize-imports"],
6
4
  };