@mui/internal-code-infra 0.0.3-canary.70 → 0.0.3-canary.72

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": "@mui/internal-code-infra",
3
- "version": "0.0.3-canary.70",
3
+ "version": "0.0.3-canary.72",
4
4
  "description": "Infra scripts and configs to be used across MUI repos.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -103,9 +103,9 @@
103
103
  "stylelint-config-standard": "^39.0.1",
104
104
  "typescript-eslint": "^8.51.0",
105
105
  "yargs": "^18.0.0",
106
- "@mui/internal-babel-plugin-display-name": "1.0.4-canary.9",
107
- "@mui/internal-babel-plugin-minify-errors": "2.0.8-canary.14",
108
- "@mui/internal-babel-plugin-resolve-imports": "2.0.7-canary.29"
106
+ "@mui/internal-babel-plugin-display-name": "1.0.4-canary.10",
107
+ "@mui/internal-babel-plugin-resolve-imports": "2.0.7-canary.30",
108
+ "@mui/internal-babel-plugin-minify-errors": "2.0.8-canary.15"
109
109
  },
110
110
  "peerDependencies": {
111
111
  "@next/eslint-plugin-next": "*",
@@ -114,7 +114,7 @@
114
114
  "typescript": "^5.0.0"
115
115
  },
116
116
  "devDependencies": {
117
- "@octokit/types": "^16.0.0",
117
+ "@octokit/types": "16.0.0",
118
118
  "@types/babel__core": "7.20.5",
119
119
  "@types/babel__preset-env": "7.10.0",
120
120
  "@types/content-type": "1.1.9",
@@ -127,9 +127,9 @@
127
127
  "@typescript-eslint/parser": "8.49.0",
128
128
  "@typescript-eslint/rule-tester": "8.49.0",
129
129
  "eslint": "9.39.1",
130
- "get-port": "^7.1.0",
130
+ "get-port": "7.1.0",
131
131
  "prettier": "3.7.4",
132
- "serve": "^14.2.5",
132
+ "serve": "14.2.5",
133
133
  "typescript-eslint": "^8.49.0"
134
134
  },
135
135
  "files": [
@@ -142,7 +142,7 @@
142
142
  "publishConfig": {
143
143
  "access": "public"
144
144
  },
145
- "gitSha": "877573f0cfcf5da40f459e69bdd9667a7c12addd",
145
+ "gitSha": "92012eb706a8f7de9425aab8414556b0440f260b",
146
146
  "scripts": {
147
147
  "build": "tsc -p tsconfig.build.json",
148
148
  "typescript": "tsc -p tsconfig.json",
@@ -125,16 +125,6 @@ export default /** @type {import('eslint').Rule.RuleModule} */ ({
125
125
  reportForbiddenApi(node, node.callee.name);
126
126
  }
127
127
  },
128
- JSXAttribute(node) {
129
- if (hasUseClientDirective) {
130
- return;
131
- }
132
-
133
- // Check for ref prop in JSX
134
- if (node.name.type === 'JSXIdentifier' && node.name.name === 'ref') {
135
- reportForbiddenApi(node, 'ref');
136
- }
137
- },
138
128
  };
139
129
  },
140
130
  meta: {
@@ -76,17 +76,6 @@ useIsoLayoutEffect(() => {});`,
76
76
  name: 'custom hook is allowed',
77
77
  code: `import { useCustomHook } from './hooks';`,
78
78
  },
79
- // ref prop with 'use client' directive is allowed
80
- {
81
- name: 'ref prop with use client directive',
82
- code: `'use client';
83
- const Component = () => <input ref={myRef} />;`,
84
- },
85
- // non-ref props are allowed without 'use client' directive
86
- {
87
- name: 'non-ref props are allowed',
88
- code: `const Component = () => <input className="test" />;`,
89
- },
90
79
  ],
91
80
  invalid: [
92
81
  // React.* API calls without 'use client' directive
@@ -312,28 +301,5 @@ import { useIsoLayoutEffect } from '@mui/utils';`,
312
301
  ],
313
302
  output: null,
314
303
  },
315
- // ref prop without 'use client' directive
316
- {
317
- name: 'ref prop without use client directive',
318
- code: `const Component = () => <input ref={myRef} />;`,
319
- errors: [
320
- {
321
- message: "Using 'ref' is forbidden if the file doesn't have a 'use client' directive.",
322
- },
323
- ],
324
- output: `'use client';
325
- const Component = () => <input ref={myRef} />;`,
326
- },
327
- {
328
- name: 'ref prop in use server file (no autofix)',
329
- code: `'use server';
330
- const Component = () => <input ref={myRef} />;`,
331
- errors: [
332
- {
333
- message: "Using 'ref' is forbidden if the file doesn't have a 'use client' directive.",
334
- },
335
- ],
336
- output: null,
337
- },
338
304
  ],
339
305
  });