Skip to content

πŸ™Œ OpenHands: AI-Driven Development

chore(deps): upgrade shadcn lint to 0.2.0 (#17987)

Engel Nysta666ac02ecf9
diff --git a/eslint.config.js b/eslint.config.js
index 4f68d63aa1..ecee218641 100644
--- a/eslint.config.js
+++ b/eslint.config.js
@@ -392,12 +392,20 @@ export default [
},
// @shadcn/lint β€” design-system linter for Tailwind v4.
- // Rules: https://github.com/shadcn-ui/lint#rules
+ // Rules: https://github.com/shadcn-ui/lint/blob/main/docs/rules.md
// `no-arbitrary-values` stays at "warn": the remaining hits are one-offs
// (raw hex, vh/vw, calc(), grid templates) with no theme-scale equivalent.
// Class existence does not need component contracts. With no remaining
// unknown utilities, new findings fail lint; styling policy remains opt-in.
// Canvas primitives use #/ui, not the plugin's default components/ui path.
+ // require-static-classes is enabled for those consumers; 0.2.0 still cannot
+ // read imported constants, so its documented narrow exceptions remain.
+ // Next: audit no-raw-colors against our themes (0.2.0 fixes text/shadow token
+ // false positives), then define component contracts for no-restyle and audit
+ // dynamic style usage before enabling no-inline-styles.
+ // 0.2.0 also improves render-prop, destructuring, barrel-export, and custom
+ // animation recognition. Vue/Svelte support adds no new rule names or parsers
+ // to this React project; keep this upgrade separate from rule activation.
{
files: ["src/**/*.{ts,tsx}"],
plugins: { shadcn: shadcnPlugin },
diff --git a/package-lock.json b/package-lock.json
index e8b9f860f7..784011cc3b 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -70,7 +70,7 @@
"@mswjs/socket.io-binding": "0.2.0",
"@playwright/test": "1.63.0",
"@react-router/dev": "7.18.2",
- "@shadcn/lint": "0.1.0",
+ "@shadcn/lint": "0.2.0",
"@stryker-mutator/core": "9.6.1",
"@stryker-mutator/vitest-runner": "9.6.1",
"@tailwindcss/typography": "0.5.20",
@@ -6996,15 +6996,14 @@
"license": "MIT"
},
"node_modules/@shadcn/lint": {
- "version": "0.1.0",
- "resolved": "https://registry.npmjs.org/@shadcn/lint/-/lint-0.1.0.tgz",
- "integrity": "sha512-UDSxO4eQa8UAclN1tChum+L336CL2uB2ZLGYiJ7r/GDrYUBOKPWWNUVoAfh2dZs4LhcwJRCn62+fKG12eAy1FQ==",
+ "version": "0.2.0",
+ "resolved": "https://registry.npmjs.org/@shadcn/lint/-/lint-0.2.0.tgz",
+ "integrity": "sha512-DTYr427BR8cDc0J0Y++u1Uh12NAYGmdPiqgy4wKSogi7RNEhFanIcfBMPRPUvkunt9QiJUfI7B28TW39MrPCFA==",
"dev": true,
"license": "MIT",
"dependencies": {
"@eslint/core": "^0.17.0",
- "@typescript-eslint/parser": "^8.40.0",
- "cn": "0.2.6"
+ "cn": "0.3.2"
},
"engines": {
"node": ">=20.19"
@@ -7013,9 +7012,13 @@
"oxc-parser": "^0.148.0"
},
"peerDependencies": {
+ "@typescript-eslint/parser": ">=8.40.0",
"eslint": ">=9.30.0"
},
"peerDependenciesMeta": {
+ "@typescript-eslint/parser": {
+ "optional": true
+ },
"eslint": {
"optional": true
}
@@ -10559,9 +10562,9 @@
}
},
"node_modules/cn": {
- "version": "0.2.6",
- "resolved": "https://registry.npmjs.org/cn/-/cn-0.2.6.tgz",
- "integrity": "sha512-+i4L0zUGgRcEnhsxueVrP7iBGxBx5iD0WOTYg1MwFEu2ZyCmH5Ov2V1cul2Ht5UchRQQgftCf4be/RxspuW6QQ==",
+ "version": "0.3.2",
+ "resolved": "https://registry.npmjs.org/cn/-/cn-0.3.2.tgz",
+ "integrity": "sha512-RKzY5Edavc8B2Ka6tjJecKFC4nm0p7lADY72xzICmiJSf4TkaxWXt0fHsib2P2G4FkFyXfSDi9oDtIBuCZvY2g==",
"dev": true,
"license": "MIT",
"bin": {
diff --git a/package.json b/package.json
index 921d978b15..ec160fe9db 100644
--- a/package.json
+++ b/package.json
@@ -132,7 +132,7 @@
"@mswjs/socket.io-binding": "0.2.0",
"@playwright/test": "1.63.0",
"@react-router/dev": "7.18.2",
- "@shadcn/lint": "0.1.0",
+ "@shadcn/lint": "0.2.0",
"@stryker-mutator/core": "9.6.1",
"@stryker-mutator/vitest-runner": "9.6.1",
"@tailwindcss/typography": "0.5.20",