@eightshift/ui-components 8.3.0 → 8.4.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/README.md +10 -0
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -13,6 +13,16 @@ Built using [React Aria components](https://react-spectrum.adobe.com/react-aria/
|
|
|
13
13
|
2. `bun install`
|
|
14
14
|
3. `bun start` to run the example
|
|
15
15
|
|
|
16
|
+
## Linting and formatting
|
|
17
|
+
|
|
18
|
+
Run `bun run lint` to check TypeScript, React, and Tailwind classes. Tailwind checks use `lib/style.css`, including the `es:` prefix, custom utilities, variants, and plugins. They cover JSX class attributes, `*ClassName` slot props such as `iconClassName`, and supported class helpers such as `clsx` and `cva`. `oxlint.config.ts` extends the plugin's default selectors rather than replacing them.
|
|
19
|
+
|
|
20
|
+
Run `bun run lint:fix` to remove duplicate classes and replace deprecated or noncanonical utilities. Unknown classes and conflicting styles need a manual decision and remain errors after autofix. Review the changes before committing. To limit fixes to one file, use `bun run lint:fix lib/components/button/button.tsx`.
|
|
21
|
+
|
|
22
|
+
Class sorting stays with `bun run fmt`; Oxfmt loads `lib/style.css` to recognize the `es:` prefix and project utilities. The Tailwind lint plugin does not enable its sorting or line-wrapping rules. Use `bun run fmt:check` to check formatting without changing files.
|
|
23
|
+
|
|
24
|
+
Non-Tailwind theme and SVG marker classes are explicitly allowed by `better-tailwindcss/no-unknown-classes` in `oxlint.config.ts`. Extend that list only for classes defined or consumed by the project, not for unknown `es:` utilities.
|
|
25
|
+
|
|
16
26
|
## Who do I talk to?
|
|
17
27
|
|
|
18
28
|
If you have any questions or problems, please [open an issue](https://github.com/infinum/eightshift-ui-components/issues) on GitHub and we will do our best to give you a timely answer.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eightshift/ui-components",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.4.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -92,6 +92,7 @@
|
|
|
92
92
|
"class-variance-authority": "^0.7.1",
|
|
93
93
|
"clsx": "^2.1.1",
|
|
94
94
|
"css-gradient-parser": "^0.0.18",
|
|
95
|
+
"eslint-plugin-better-tailwindcss": "4.7.0",
|
|
95
96
|
"glob": "^13.0.6",
|
|
96
97
|
"just-camel-case": "^6.2.0",
|
|
97
98
|
"just-debounce-it": "^3.2.0",
|