@devbie/style-guide 1.1.2 → 1.1.3

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/README.md CHANGED
@@ -70,11 +70,15 @@ default, only as a deliberate milestone.
70
70
 
71
71
  ## Changelog
72
72
 
73
+ - 1.1.3 — `frontend` pins the React version for rule evaluation (19.0) instead
74
+ of detecting it: fewbie lints React template sources without a `react`
75
+ package installed, where detection only emits a warning.
73
76
  - 1.1.2 — fix: `next` extends `core` plus the canonical Next rule set
74
77
  (`eslint-config-next` already bundles React/react-hooks/jsx-a11y, so
75
78
  spreading `frontend` on top redefined `jsx-a11y` and flat config rejected
76
- it). The `frontend` React layer is now scoped to JSX/TSX files, so
77
- non-React frontend repos (fewbie-cli) never evaluate React rules.
79
+ it). The `frontend` React layer is now scoped to JSX/TSX files, so Node code
80
+ in frontend repos is not evaluated against React rules while React template
81
+ sources are.
78
82
  - 1.1.1 — fix: `frontend` uses the flat variant of eslint-plugin-react-hooks
79
83
  (`configs.flat["recommended-latest"]`); 1.1.0 shipped the legacy shape and
80
84
  failed to load under flat config.
@@ -14,9 +14,9 @@ import jsxA11y from "eslint-plugin-jsx-a11y";
14
14
  * /eslint-parser`), while fewbie ships a Node CLI and has no Next runtime.
15
15
  * Next.js applications layer `@devbie/style-guide/eslint/next` on top instead.
16
16
  *
17
- * The JSX/React layer is scoped to JSX/TSX files: repositories in the
18
- * frontend group that carry no React code (fewbie-cli) receive the same
19
- * standard without evaluating React rules at all.
17
+ * The JSX/React layer is scoped to JSX/TSX files, so Node code in a frontend
18
+ * group repo (fewbie-cli) is never evaluated against React rules, while its
19
+ * React template sources are.
20
20
  */
21
21
  const jsxFiles = ["**/*.jsx", "**/*.tsx"];
22
22
  const jsxOnly = (config) => ({ ...config, files: jsxFiles });
@@ -27,5 +27,8 @@ export default [
27
27
  jsxOnly(react.configs.flat["jsx-runtime"]),
28
28
  jsxOnly(reactHooks.configs.flat["recommended-latest"]),
29
29
  jsxOnly(jsxA11y.flatConfigs.recommended),
30
+ // Pinned instead of `detect`: fewbie lints React 19 template sources without
31
+ // a `react` package installed, where detection only produces a warning.
32
+ { settings: { react: { version: "19.0" } } },
30
33
  prettierConfig,
31
34
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devbie/style-guide",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "Single source of truth for devbie ecosystem code style: shared prettier config and eslint flat standards (backend, frontend, next)",
5
5
  "license": "MIT",
6
6
  "author": "worldzhy",